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

Assign project with priority scheme

Assigns project with priority scheme. Priority scheme assign with migration is possible from the UI. Operation will fail if migration is needed as a result of operation eg. there are issues with priorities invalid in the destination scheme. All project keys associated with the priority scheme will only be returned if additional query parameter is provided expand=projectKeys.

PUT/api/2/project/{projectKeyOrId}/priorityscheme
Authorization
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 the project

Request body
requiredapplication/json

Object that contains an id of the scheme

idinteger<int64>
Responses
200

Affected priority scheme.

defaultOptionIdstring
defaultSchemeboolean
descriptionstring
idinteger<int64>
namestring
optionIdsstring[]
projectKeysstring[]
selfstring<uri>
400

Returned if the request is not valid and the priority scheme could not be updated. Eg. migration is needed as a result of operation.

403

Returned if the user does not have rights to assign priority schemes.

404

Returned if project or priority scheme is not found.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/project/string/priorityscheme' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": 10000
}'
Response
{
  "defaultOptionId": "string",
  "defaultScheme": true,
  "description": "string",
  "id": 0,
  "name": "string",
  "optionIds": [
    "string"
  ],
  "projectKeys": [
    "string"
  ],
  "self": "http://example.com"
}

Was this page helpful?