Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JSWCLOUD-17997

Agile rest API for epic is not returning accurate results for the status

      Issue Summary

      Using the Get epics endpoint and querying for an specific status, the results are not consistent.

      Environment

      • Next-gen project

      Steps to Reproduce

      1. Create a next-gen project;
      2. Create two epics, set one with the "Done" status, and the other with another status;
      3. Run the following endpoint on the browser:
        https://<INSTANCE_NAME>.net/rest/agile/1.0/board/<BOARD_ID>/epic?done=false

        See the example on my test instance here.

      Expected Results

      Only the "Epic 1" should return.

      Actual Results

      Both Epics return as false.

      {
        "maxResults": 50,
        "startAt": 0,
        "isLast": true,
        "values": [
          {
            "id": 12378,
            "key": "RT-13",
            "self": "https://becktokceb.atlassian.net/rest/agile/1.0/epic/12378",
            "name": "",
            "summary": "Epic 1",
            "color": {
              "key": "color_1"
            },
            "done": false
          },
          {
            "id": 12379,
            "key": "RT-14",
            "self": "https://becktokceb.atlassian.net/rest/agile/1.0/epic/12379",
            "name": "",
            "summary": "Epic 2",
            "color": {
              "key": "color_1"
            },
            "done": false
          }
        ]
      }
      

      Workaround

      Use another endpoint to get the proper status for the specific Epics, examples:

      • https://<INSTANCE_NAME>.atlassian.net/rest/agile/1.0/issue/<EPIC_KEY>?fields=status
      • https://<INSTANCE_NAME>.atlassian.net/rest/api/3/issue/<EPIC_KEY>?fields=status

            [JSWCLOUD-17997] Agile rest API for epic is not returning accurate results for the status

            Dylan made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            Dylan made changes -
            Labels New: stale-bulk-close202006
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: JSWCLOUD Bug Workflow [ 3269235 ] New: JAC Bug Workflow v3 [ 3475033 ]
            Status Original: Verified [ 10005 ] New: Gathering Impact [ 12072 ]
            Henry Su made changes -
            Status Original: Open [ 1 ] New: Verified [ 10005 ]
            Bugfix Automation Bot made changes -
            Support reference count New: 1
            Fábio W. [Atlassian] made changes -
            Summary Original: Agile rest api for epic is not returning accurate results for the status New: Agile rest API for epic is not returning accurate results for the status
            Fábio W. [Atlassian] made changes -
            Description Original: h3. Issue Summary

            Using the [Get epics|https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-board-boardId-epic-get] endpoint and querying for an specific status, the results are not consistent.

            h3. Environment
            * Next-gen project

            h3. Steps to Reproduce
             # Create a next-gen project;
             # Create two epics, set one with the "Done" status, and the other with another status;
             # Run the following endpoint on the browser:
             {code:SQL}https://&lt;INSTANCE_NAME&gt;.net/rest/agile/1.0/board/&lt;BOARD_ID&gt;/epic?done=false{code}
            See the example on my test instance [here|https://cl.ly/003a635d9f23].

            h3. Expected Results
            Only the "Epic 1" should return.

            h3. Actual Results
            Both Epics return as false.
            {code:JSON}
            {
              "maxResults": 50,
              "startAt": 0,
              "isLast": true,
              "values": [
                {
                  "id": 12378,
                  "key": "RT-13",
                  "self": "https://becktokceb.atlassian.net/rest/agile/1.0/epic/12378",
                  "name": "",
                  "summary": "Epic 1",
                  "color": {
                    "key": "color_1"
                  },
                  "done": false
                },
                {
                  "id": 12379,
                  "key": "RT-14",
                  "self": "https://becktokceb.atlassian.net/rest/agile/1.0/epic/12379",
                  "name": "",
                  "summary": "Epic 2",
                  "color": {
                    "key": "color_1"
                  },
                  "done": false
                }
              ]
            }

            h3. Workaround
            Use another endpoint to get the proper status for the specific Epics, examples:
            * https://&lt;INSTANCE_NAME&gt;.atlassian.net/rest/agile/1.0/issue/&lt;EPIC_KEY&gt;?fields=status
            * https://&lt;INSTANCE_NAME&gt;.atlassian.net/rest/api/3/issue/&lt;EPIC_KEY&gt;?fields=status
            New: h3. Issue Summary

            Using the [Get epics|https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-board-boardId-epic-get] endpoint and querying for an specific status, the results are not consistent.

            h3. Environment
            * Next-gen project

            h3. Steps to Reproduce
             # Create a next-gen project;
             # Create two epics, set one with the "Done" status, and the other with another status;
             # Run the following endpoint on the browser:
             {code:SQL}https://&lt;INSTANCE_NAME&gt;.net/rest/agile/1.0/board/&lt;BOARD_ID&gt;/epic?done=false{code}
            See the example on my test instance [here|https://cl.ly/003a635d9f23].

            h3. Expected Results
            Only the "Epic 1" should return.

            h3. Actual Results
            Both Epics return as false.
            {code:JSON}
            {
              "maxResults": 50,
              "startAt": 0,
              "isLast": true,
              "values": [
                {
                  "id": 12378,
                  "key": "RT-13",
                  "self": "https://becktokceb.atlassian.net/rest/agile/1.0/epic/12378",
                  "name": "",
                  "summary": "Epic 1",
                  "color": {
                    "key": "color_1"
                  },
                  "done": false
                },
                {
                  "id": 12379,
                  "key": "RT-14",
                  "self": "https://becktokceb.atlassian.net/rest/agile/1.0/epic/12379",
                  "name": "",
                  "summary": "Epic 2",
                  "color": {
                    "key": "color_1"
                  },
                  "done": false
                }
              ]
            }
            {code}
            h3. Workaround
            Use another endpoint to get the proper status for the specific Epics, examples:
            * https://&lt;INSTANCE_NAME&gt;.atlassian.net/rest/agile/1.0/issue/&lt;EPIC_KEY&gt;?fields=status
            * https://&lt;INSTANCE_NAME&gt;.atlassian.net/rest/api/3/issue/&lt;EPIC_KEY&gt;?fields=status
            Fábio W. [Atlassian] created issue -

              Unassigned Unassigned
              fbeck Fábio W. [Atlassian]
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: