getAllProjectCategories method

Future<List<ProjectCategory>> getAllProjectCategories()

Returns all project categories.

Permissions required: Permission to access Jira.

Implementation

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