getStatusesById method

Future<List<JiraStatus>> getStatusesById({
  1. String? expand,
  2. List<String>? id,
})

Returns a list of the statuses specified by one or more status IDs.

Permissions required:

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