getAllProjectCategories method
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();
}