createProjectRole method

Future<ProjectRole> createProjectRole({
  1. required CreateUpdateRoleRequestBean body,
})

Creates a new project role with no default actors. You can use the Add default actors to project role operation to add default actors to the project role after creating it.

Note that although a new project role is available to all projects upon creation, any default actors that are associated with the project role are not added to projects that existed prior to the role being created.<

Permissions required: Administer Jira global permission.

Implementation

Future<ProjectRole> createProjectRole(
    {required CreateUpdateRoleRequestBean body}) async {
  return ProjectRole.fromJson(await _client.send(
    'post',
    'rest/api/3/role',
    body: body.toJson(),
  ));
}