Internal
Create a new instance of the service.
Assigns a permission scheme with a project. See Managing project permissions for more information about permission schemes.
Permissions required: Administer Jira global permission
Optional
expand?: stringUse expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are included when you specify any value. Expand options include:
all
Returns all expandable information.field
Returns information about the custom field granted the permission.group
Returns information about the group that is granted the permission.permissions
Returns all permission grants for each permission scheme.projectRole
Returns information about the project role granted the
permission.user
Returns information about the user who is granted the permission.The project ID or project key (case sensitive).
Returned if the request is successful.
example:
{
"description": "description",
"id": 10000,
"name": "Example permission scheme",
"self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
}
PUT /rest/api/3/project/{projectKeyOrId}/permissionscheme
@scopes-current manage:jira-project
@scopes-beta read:application-role:jira, read:field:jira, read:group:jira, read:permission-scheme:jira, read:permission:jira, read:project-role:jira, read:user:jira, write:project:jira, read:avatar:jira, read:project-category:jira, read:project:jira
Gets the permission scheme associated with the project.
Permissions required: Administer Jira global permission or Administer projects project permission.
Optional
expand?: stringUse expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are included when you specify any value. Expand options include:
all
Returns all expandable information.field
Returns information about the custom field granted the permission.group
Returns information about the group that is granted the permission.permissions
Returns all permission grants for each permission scheme.projectRole
Returns information about the project role granted the
permission.user
Returns information about the user who is granted the permission.The project ID or project key (case sensitive).
Returned if the request is successful.
example:
{
"description": "description",
"id": 10000,
"name": "Example permission scheme",
"self": "https://your-domain.atlassian.net/rest/api/3/permissionscheme/10000"
}
GET /rest/api/3/project/{projectKeyOrId}/permissionscheme
@scopes-current read:jira-work
@scopes-beta read:application-role:jira, read:field:jira, read:group:jira, read:permission-scheme:jira, read:permission:jira, read:project-role:jira, read:user:jira, read:avatar:jira, read:project-category:jira, read:project:jira
Returns the issue security scheme associated with the project.
Permissions required: Administer Jira global permission or the Administer Projects project permission.
The project ID or project key (case sensitive).
Returned if the request is successful.
example:
{
"defaultSecurityLevelId": 10021,
"description": "Description for the default issue security scheme",
"id": 10000,
"levels": [
{
"description": "Only the reporter and internal staff can see this issue.",
"id": "10021",
"name": "Reporter Only",
"self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/10021"
}
],
"name": "Default Issue Security Scheme",
"self": "https://your-domain.atlassian.net/rest/api/3/issuesecurityschemes/10000"
}
Returns all issue security levels for the project that the user has access to.
This operation can be accessed anonymously.
Permissions required: Browse projects global permission for the project, however, issue security levels are only returned for authenticated user with Set Issue Security global permission for the project.
The project ID or project key (case sensitive).
Returned if the request is successful.
example:
{
"levels": [
{
"description": "Only the reporter and internal staff can see this issue.",
"id": "100000",
"name": "Reporter Only",
"self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/100000"
},
{
"description": "Only internal staff can see this issue.",
"id": "100001",
"name": "Staff Only",
"self": "https://your-domain.atlassian.net/rest/api/3/securitylevel/100001"
}
]
}
Protected
Static
initialize
This resource represents permission schemes for a project. Use this resource to:
See Managing project permissions for more information about permission schemes.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-permission-schemes