getIssueAllTypes method

Future<List<IssueTypeDetails>> getIssueAllTypes()

Returns all issue types.

This operation can be accessed anonymously.

Permissions required: Issue types are only returned as follows:

  • if the user has the Administer Jira global permission, all issue types are returned.
  • if the user has the Browse projects project permission for one or more projects, the issue types associated with the projects the user has permission to browse are returned.

Implementation

Future<List<IssueTypeDetails>> getIssueAllTypes() async {
  return (await _client.send(
    'get',
    'rest/api/3/issuetype',
  ) as List<Object?>)
      .map((i) =>
          IssueTypeDetails.fromJson(i as Map<String, Object?>? ?? const {}))
      .toList();
}