addProjectRoleActorsToRole method

Future<ProjectRole> addProjectRoleActorsToRole({
  1. required int id,
  2. required ActorInputBean body,
})

Adds default actors to a role. You may add groups or users, but you cannot add groups and users in the same request.

Changing a project role's default actors does not affect project role members for projects already created.

Permissions required: Administer Jira global permission.

Implementation

Future<ProjectRole> addProjectRoleActorsToRole(
    {required int id, required ActorInputBean body}) async {
  return ProjectRole.fromJson(await _client.send(
    'post',
    'rest/api/3/role/{id}/actors',
    pathParameters: {
      'id': '$id',
    },
    body: body.toJson(),
  ));
}