createStatuses method

Future<List<JiraStatus>> createStatuses({
  1. required StatusCreateRequest body,
})

Creates statuses for a global or project scope.

Permissions required:

Implementation

Future<List<JiraStatus>> createStatuses(
    {required StatusCreateRequest body}) async {
  return (await _client.send(
    'post',
    'rest/api/3/statuses',
    body: body.toJson(),
  ) as List<Object?>)
      .map((i) => JiraStatus.fromJson(i as Map<String, Object?>? ?? const {}))
      .toList();
}