getHierarchy method

  1. @deprecated
Future<ProjectIssueTypeHierarchy> getHierarchy(
  1. int projectId
)

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.

Implementation

@deprecated
Future<ProjectIssueTypeHierarchy> getHierarchy(int projectId) async {
  return ProjectIssueTypeHierarchy.fromJson(await _client.send(
    'get',
    'rest/api/3/project/{projectId}/hierarchy',
    pathParameters: {
      'projectId': '$projectId',
    },
  ));
}