createPriority method

Future<PriorityId> createPriority({
  1. required CreatePriorityDetails body,
})

Creates an issue priority.

Permissions required: Administer Jira global permission.

Implementation

Future<PriorityId> createPriority(
    {required CreatePriorityDetails body}) async {
  return PriorityId.fromJson(await _client.send(
    'post',
    'rest/api/3/priority',
    body: body.toJson(),
  ));
}