getAllStatuses method
Returns the valid statuses for a project. The statuses are grouped by issue type, as each project has a set of valid issue types and each issue type has a set of valid statuses.
This operation can be accessed anonymously.
Permissions required: Browse Projects project permission for the project.
Implementation
Future<List<IssueTypeWithStatus>> getAllStatuses(
String projectIdOrKey) async {
return (await _client.send(
'get',
'rest/api/3/project/{projectIdOrKey}/statuses',
pathParameters: {
'projectIdOrKey': projectIdOrKey,
},
) as List<Object?>)
.map((i) => IssueTypeWithStatus.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList();
}