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 added a comment -

            Hi all,

            Thank you for raising this bug and bringing it to our attention.

            Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be resolved.

            To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all Jira users.

            Dylan added a comment - Hi all, Thank you for raising this bug and bringing it to our attention. Within our company roadmap and work capacity, we try to address or review each bug request but admit that not each one will be resolved. To continue the culture of being honest and open, we are closing this bug to focus on our upcoming roadmap for all Jira users.

            I appreciate the input on the workaround - but I would suggest it's not much of a workaround.  If you have ~25 Epics, that's 25 API calls instead of 1.

            Forest Balk added a comment - I appreciate the input on the workaround - but I would suggest it's not much of a workaround.  If you have ~25 Epics, that's 25 API calls instead of 1.

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

                Created:
                Updated:
                Resolved: