createStatuses method
Creates statuses for a global or project scope.
Permissions required:
- Administer projects project permission.
- Administer Jira project permission.
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();
}