getStatusesById method
Returns a list of the statuses specified by one or more status IDs.
Permissions required:
- Administer projects project permission.
- Administer Jira project permission.
Implementation
Future<List<JiraStatus>> getStatusesById(
{String? expand, List<String>? id}) async {
return (await _client.send(
'get',
'rest/api/3/statuses',
queryParameters: {
if (expand != null) 'expand': expand,
if (id != null) 'id': id.map((e) => e).join(','),
},
) as List<Object?>)
.map((i) => JiraStatus.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}