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

Modify version's sequence

Modify a version’s sequence within a project. The move version bean has 2 alternative field value pairs:

  • position: An absolute position, which may have a value of ‘First’, ‘Last’, ‘Earlier’ or ‘Later’
  • after: A version to place this version after. The value should be the self link of another version
POST/api/2/version/{id}/move
Authorization
AuthorizationBasic auth · headerrequired

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

Path parameters
idstringrequired

ID of the version.

Request body
requiredapplication/json

JSON containing parameters to move the version with

afterstring<uri>
positionstring
Allowed:EarlierLaterFirstLast
Responses
200

Returned if the version is successfully moved.

archivedboolean
descriptionstring
expandstring
idstring
moveUnfixedIssuesTostring<uri>
namestring
overdueboolean
projectstring
projectIdinteger<int64>
releaseDatestring<date-time>
releaseDateSetboolean
releasedboolean
selfstring<uri>
startDatestring<date-time>
startDateSetboolean
userReleaseDatestring
userStartDatestring
403

Returned if the currently authenticated user does not have permission to move the version.

404

Returned if the version does not exist or the currently authenticated user does not have permission to view it.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/version/string/move' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "after": "http://localhost:8090/jira/rest/api/2/version/10000",
  "position": "Earlier"
}'
Response
{
  "archived": false,
  "description": "An excellent version",
  "expand": "10000",
  "id": "10000",
  "moveUnfixedIssuesTo": "http://localhost:8090/jira/rest/api/2/version/10000/move",
  "name": "New Version 1",
  "overdue": true,
  "project": "PXA",
  "projectId": 10000,
  "releaseDate": "2019-08-24T14:15:22Z",
  "releaseDateSet": false,
  "released": true,
  "self": "http://localhost:8090/jira/rest/api/2/version/10000",
  "startDate": "2019-08-24T14:15:22Z",
  "startDateSet": false,
  "userReleaseDate": "2012-09-15T21:11:01.834+0000",
  "userStartDate": "2012-08-15T21:11:01.834+0000"
}

Was this page helpful?