Skip to content

[bug]: Issue List API ignores group_by parameter and returns flat array with null grouped_by #9765

Description

@Aryannaik-max

### Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I issue a GET request to /api/v1/workspaces/<workspace_slug>/projects/<project_id>/issues/?group_by=state, the API ignores the group_by parameter, sets "grouped_by": null, and returns a flat array of issues.

json

{
  "grouped_by": null,
  "sub_grouped_by": null,
  "total_count": 1,
  "count": 1,
  "results": [
    {
      "id": "3316a9db-d234-42f0-8f49-d912d22f811a",
      "name": "Test Issue",
      "state": "ae9b8057-e219-497d-b547-9d73bc29934b",
      "labels": []
    }
  ]
}

Steps to reproduce

Create an issue in a project and assign it a state (e.g., Backlog).

Issue a GET request to the issues endpoint including ?group_by=state:

Bash

curl -X GET "http://127.0.0.1:8000/api/v1/workspaces/<workspace_slug>/projects/<project_id>/issues/?group_by=state" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>

Observed Behavior
The API responds with HTTP 200, but "grouped_by" remains null and the results array is returned as a standard flat list:

JSON

{
  "grouped_by": null,
  "sub_grouped_by": null,
  "total_count": 1,
  "count": 1,
  "results": [
    {
      "id": "3316a9db-d234-42f0-8f49-d912d22f811a",
      "name": "Test Issue",
      "state": "ae9b8057-e219-497d-b547-9d73bc29934b",
      "labels": [...]
    }
  ]
}

Environment

Deploy preview

Browser

Google Chrome

Edition

Community

Version

v0.17.0-dev

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

planesync issues to Plane🐛bugSomething isn't working

Type

Fields

Edition

None yet

Version

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions