getStatusCategories method

Future<List<StatusCategory>> getStatusCategories()

Returns a list of all status categories.

Permissions required: Permission to access Jira.

Implementation

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