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

Rank issues before or after a given issue

Moves (ranks) issues before or after a given issue. At most 50 issues may be ranked at once. This operation may fail for some issues, although this will be rare. In that case the 207 status code is returned for the whole response and detailed information regarding each issue is available in the response body. If rankCustomFieldId is not defined, the default rank field will be used.

PUT/agile/1.0/issue/rank
Authorization
AuthorizationBasic auth · headerrequired

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

Request body
requiredapplication/json

Bean which contains list of issues to rank and information where it should be ranked.

issuesstring[]
rankAfterIssuestring
rankBeforeIssuestring
rankCustomFieldIdinteger<int64>
Responses
204

Empty response is returned if operation was successful.

207

Returns the list of issue with status of rank operation.

entriesEntry[]
Show properties
Array of Entry
errorsstring[]
issueIdinteger<int64>
issueKeystring
statusinteger<int32>
400

Returned if the request is invalid.

401

Returned if the user is not logged in.

403

Returned if user does not a have valid license or does not have permission to rank.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/agile/1.0/issue/rank' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "issues": [
    "PR-1",
    "10001",
    "PR-3"
  ],
  "rankAfterIssue": "PR-4",
  "rankBeforeIssue": "PR-4",
  "rankCustomFieldId": 10521
}'
Response
Empty response is returned if operation was successful.

Was this page helpful?