Get Project Issue Type Hierarchy
GET {{baseUrl}}/rest/api/3/project/:projectId/hierarchy
Get the issue type hierarchy for a next-gen project.
The issue type hierarchy for a project consists of:
- Epic at level 1 (optional).
- One or more issue types at level 0 such as Story, Task, or Bug. Where the issue type Epic is defined, these issue types are used to break down the content of an epic.
- Subtask at level -1 (optional). This issue type enables level 0 issue types to be broken down into components. Issues based on a level -1 issue type must have a parent issue.
Permissions required: Browse projects project permission for the project.
RESPONSES
status: OK
{"projectId":10030,"hierarchy":[{"entityId":"5b27ab71-dcae-474d-825f-6e83918d025d","level":0,"name":"Base","issueTypes":[{"id":10008,"entityId":"c63a0448-c80c-4dec-ab84-264017df5281","name":"Story","avatarId":10324},{"id":10001,"entityId":"40604ff1-cfc7-4dfe-966c-39cf47fc4d19","name":"Bug","avatarId":10324}]},{"entityId":"143169ca-b23d-49a0-8b43-307c0f9baf76","level":1,"name":"Epic","issueTypes":[{"id":10007,"entityId":"104d5df0-758b-45c2-befb-daca875b6ce6","name":"Epic","avatarId":10179}]},{"entityId":"9effde34-f9e2-499a-823b-6f8d0e02283b","level":-1,"name":"Subtask","issueTypes":[{"id":10009,"entityId":"0bcaeee4-385f-4655-a378-143cc6653ea9","name":"Subtask","avatarId":10573}]}]}