GET

Get all priority schemesExperimental

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

Request

Query parameters

maxResults

integer

startAt

integer

Responses

Priority schemes

application/json

PrioritySchemeListBean
GET/api/2/priorityschemes
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/priorityschemes' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
POST

Create new priority schemeExperimental

Creates new priority scheme.

Request

Request bodyapplication/json

Data of priority scheme to create

defaultOptionId

string

description

string

id

integer

name

string

optionIds

array<string>

Responses

Newly created priority scheme

application/json

PrioritySchemeBean
POST/api/2/priorityschemes
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'
GET

Get a priority scheme by IDExperimental

Gets a full representation of a priority scheme in JSON format.

Request

Path parameters

schemeId

integer

Required

Responses

Priority scheme

application/json

PrioritySchemeBean
GET/api/2/priorityschemes/{schemeId}
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'
PUT

Update a priority schemeExperimental

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.

Request

Path parameters

schemeId

integer

Required

Request bodyapplication/json

New scheme data

defaultOptionId

string

description

string

id

integer

name

string

optionIds

array<string>

Responses

Updated priority scheme

application/json

PrioritySchemeBean
PUT/api/2/priorityschemes/{schemeId}
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'
DEL

Delete a priority schemeExperimental

Deletes a priority scheme. All projects using deleted scheme will use default priority scheme afterwards.

Request

Path parameters

schemeId

integer

Required

Responses

Returned if the priority scheme is successfully deleted.

DEL/api/2/priorityschemes/{schemeId}
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/priorityschemes/{schemeId}' \ --user 'email@example.com:<api_token>'

Rate this page: