Returns all priority schemes. All project keys associated with the priority scheme will only be returned if additional query parameter is provided expand=schemes.projectKeys
integer
integer
Priority schemes
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/priorityschemes' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
Creates new priority scheme.
Data of priority scheme to create
string
string
integer
string
array<string>
Newly created priority scheme
1
2
3
4
5
curl --request POST \
--url 'http://{baseurl}/rest/api/2/priorityschemes' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Gets a full representation of a priority scheme in JSON format.
integer
RequiredPriority scheme
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/priorityschemes/{schemeId}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
Updates a priority scheme. Update will be rejected if issue migration would be needed as a result of scheme update. Priority scheme update with migration is possible from the UI.
integer
RequiredNew scheme data
string
string
integer
string
array<string>
Updated priority scheme
1
2
3
4
5
curl --request PUT \
--url 'http://{baseurl}/rest/api/2/priorityschemes/{schemeId}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Deletes a priority scheme. All projects using deleted scheme will use default priority scheme afterwards.
integer
RequiredReturned if the priority scheme is successfully deleted.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/priorityschemes/{schemeId}' \
--user 'email@example.com:<api_token>'
Rate this page: