Internal
Create a new instance of the service.
Adds actors to a project role for the project.
To replace all actors for the project, use Set actors for project role.
This operation can be accessed anonymously.
Permissions required: Administer Projects project permission for the project or Administer Jira global permission.
The groups or users to associate with the project role for this project. Provide the user account ID, group name, or group ID. As a group's name can change, use of group ID is recommended.
The ID of the project role. Use Get all project roles to get a list of project role IDs.
The project ID or project key (case sensitive).
Returned if the request is successful. The complete list of actors for the project is returned.
For example, the cURL request above adds a group, jira-developers. For the response below to be returned as a result of that request, the user Mia Krystof would have previously been added as a user
actor for this project.
example:
{
"actors": [
{
"actorGroup": {
"displayName": "jira-developers",
"groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
"name": "jira-developers"
},
"displayName": "jira-developers",
"id": 10240,
"name": "jira-developers",
"type": "atlassian-group-role-actor",
"user": "jira-developers"
},
{
"actorUser": {
"accountId": "5b10a2844c20165700ede21g"
},
"displayName": "Mia Krystof",
"id": 10241,
"type": "atlassian-user-role-actor"
}
],
"description": "A project role that represents developers in a project",
"id": 10360,
"name": "Developers",
"scope": {
"project": {
"id": "10000",
"key": "KEY",
"name": "Next Gen Project"
},
"type": "PROJECT"
},
"self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
}
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.
The ID of the project role. Use Get all project roles to get a list of project role IDs.
Returned if the request is successful.
example:
{
"actors": [
{
"actorGroup": {
"name": "jira-developers",
"displayName": "jira-developers",
"groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2"
},
"displayName": "jira-developers",
"id": 10240,
"name": "jira-developers",
"type": "atlassian-group-role-actor"
}
]
}
Deletes actors from a project role for the project.
To remove default actors from the project role, use Delete default actors from project role.
This operation can be accessed anonymously.
Permissions required: Administer Projects project permission for the project or Administer Jira global permission.
Optional
group?: stringThe name of the group to remove from the project role. This parameter cannot be
used with the groupId
parameter. As a group's name can change, use of
groupId
is recommended.
Optional
groupThe ID of the group to remove from the project role. This parameter cannot be
used with the group
parameter.
The ID of the project role. Use Get all project roles to get a list of project role IDs.
The project ID or project key (case sensitive).
Optional
user?: stringThe user account ID of the user to remove from the project role.
Deletes the default actors from a project role. You may delete a group or user, but you cannot delete a group and a user 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.
Optional
group?: stringThe group name of the group to be removed as a default actor.This parameter
cannot be used with the groupId
parameter. As a group's name can change, use
of groupId
is recommended.
Optional
groupThe group ID of the group to be removed as a default actor. This parameter
cannot be used with the group
parameter.
The ID of the project role. Use Get all project roles to get a list of project role IDs.
Optional
user?: stringThe user account ID of the user to remove as a default actor.
Returned if the request is successful.
example:
{
"actors": [
{
"actorGroup": {
"name": "jira-developers",
"displayName": "jira-developers",
"groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2"
},
"displayName": "jira-developers",
"id": 10240,
"name": "jira-developers",
"type": "atlassian-group-role-actor"
}
]
}
Returns the default actors for the project role.
Permissions required: Administer Jira global permission.
The ID of the project role. Use Get all project roles to get a list of project role IDs.
Returned if the request is successful.
example:
{
"actors": [
{
"actorGroup": {
"name": "jira-developers",
"displayName": "jira-developers",
"groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2"
},
"displayName": "jira-developers",
"id": 10240,
"name": "jira-developers",
"type": "atlassian-group-role-actor"
}
]
}
Sets the actors for a project role for a project, replacing all existing actors.
To add actors to the project without overwriting the existing list, use Add actors to project role.
Permissions required: Administer Projects project permission for the project or Administer Jira global permission.
The ID of the project role. Use Get all project roles to get a list of project role IDs.
The project ID or project key (case sensitive).
The groups or users to associate with the project role for this project. Provide the user account ID, group name, or group ID. As a group's name can change, use of group ID is recommended.
Returned if the request is successful. The complete list of actors for the project is returned.
example:
{
"actors": [
{
"actorGroup": {
"displayName": "jira-developers",
"groupId": "952d12c3-5b5b-4d04-bb32-44d383afc4b2",
"name": "jira-developers"
},
"displayName": "jira-developers",
"id": 10240,
"name": "jira-developers",
"type": "atlassian-group-role-actor",
"user": "jira-developers"
},
{
"actorUser": {
"accountId": "5b10a2844c20165700ede21g"
},
"displayName": "Mia Krystof",
"id": 10241,
"type": "atlassian-user-role-actor"
}
],
"description": "A project role that represents developers in a project",
"id": 10360,
"name": "Developers",
"scope": {
"project": {
"id": "10000",
"key": "KEY",
"name": "Next Gen Project"
},
"type": "PROJECT"
},
"self": "https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360"
}
Protected
Static
initialize
This resource represents the users assigned to project roles. Use it to get, add, and remove default users from project roles. Also use it to add and remove users from a project role associated with a project.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-role-actors