Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-93929

Get issue endpoint doesn’t return subtasks for issues on team-managed projects

XMLWordPrintable

      Issue Summary

      The endpoint /rest/api/3/issue/ won’t return the issue sub-tasks if the issue is part of a team-managed project.

      Steps to Reproduce

      1. In your Jira Cloud instance, create a new ticket with the Task issue type (Make sure to do this in a team-managed where sub-tasks are enabled).
        -  Take note of this issue key
      2. Access the issue and create a sub-task in it.
        -  This can be done by clicking on  Add Child issue.
      3. Do an API call by passing the main Task as a parameter
        -  The call should be something like GET [ instance ]/rest/api/3/issue/[ issue_key ]

      Expected Results

      The request should return the sub-tasks in the "sub-tasks" field.

      Actual Results

      The field "sub-tasks" is not present in the request return content.

      Notes

      When calling one of the sub-tasks using the Get issue endpoint, it will the field "sub-task" will return as True. Reinforcing the incoherent behavior.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              045e5bbc18d4 Richard Santos
              Votes:
              25 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: