Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get all security levels for project

Returns all security levels for the project that the current logged in user has access to. If the user does not have the Set Issue Security permission, the list will be empty.

GET/api/2/project/{projectKeyOrId}/securitylevel
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
projectKeyOrIdstringrequired

Key or id of project to list the security levels for

Responses
200

Returns a list of all security levels in a project for which the current user has access.

levelsSecurityLevelJsonBean[]
Show properties
Array of SecurityLevelJsonBean
descriptionstring
idstring
namestring
selfstring
404

Returned if the project is not found or the user does not have permissions to browse it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/project/string/securitylevel' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "levels": [
    {
      "description": "This is a security level",
      "id": "10000",
      "name": "My Security Level",
      "self": "http://www.example.com/jira/rest/api/2/securitylevel/10000"
    }
  ]
}

Was this page helpful?