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

Partially update a sprint

Performs a partial update of a sprint. A partial update means that fields not present in the request JSON will not be updated. Notes:

  • Sprints that are in a closed state cannot be updated.
  • A sprint can be started by updating the state to ‘active’. This requires the sprint to be in the ‘future’ state and have a startDate and endDate set.
  • A sprint can be completed by updating the state to ‘closed’. This action requires the sprint to be in the ‘active’ state. This sets the completeDate to the time of the request. If the sprint has offending issues (those which are complete, but have incomplete subtasks) it cannot be closed. If issues are moved to new sprint user has to have issues edit permissions.
  • Other changes to state are not allowed.
  • The completeDate field cannot be updated manually.
  • Sprint goal can be removed by updating it’s value to empty string
  • Only Jira administrators can edit dates on sprints that are marked as synced.
POST/agile/1.0/sprint/{sprintId}
Authorization
AuthorizationBasic auth · headerrequired

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

Path parameters
sprintIdinteger<int64>required

The Id of the sprint to update.

Request body
requiredapplication/json

The updated sprint.

activatedDatestring
autoStartStopboolean
completeDatestring
endDatestring
goalstring
idinteger<int64>
incompleteIssuesDestinationIdinteger<int64>
namestring
originBoardIdinteger<int64>
selfstring<uri>
startDatestring
statestring
syncedboolean
Responses
200

Returns the updated sprint.

activatedDatestring
autoStartStopboolean
completeDatestring
endDatestring
goalstring
idinteger<int64>
incompleteIssuesDestinationIdinteger<int64>
namestring
originBoardIdinteger<int64>
selfstring<uri>
startDatestring
statestring
syncedboolean
400

Returned if the request is invalid.

401

Returned if the user is not logged in.

403

Returned if the user does not a have valid license.

404

Returned if the sprint does not exist.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/agile/1.0/sprint/0' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "activatedDate": "2015-04-11T15:22:00.000+10:00",
  "autoStartStop": true,
  "completeDate": "2015-04-20T11:04:00.000+10:00",
  "endDate": "2015-04-20T01:22:00.000+10:00",
  "goal": "Goal for the sprint",
  "id": 10001,
  "incompleteIssuesDestinationId": 10001,
  "name": "Sprint 1",
  "originBoardId": 5,
  "self": "http://www.example.com/jira/rest/agile/1.0/sprint/10001",
  "startDate": "2015-04-11T15:22:00.000+10:00",
  "state": "active",
  "synced": true
}'
Response
{
  "activatedDate": "2015-04-11T15:22:00.000+10:00",
  "autoStartStop": true,
  "completeDate": "2015-04-20T11:04:00.000+10:00",
  "endDate": "2015-04-20T01:22:00.000+10:00",
  "goal": "Goal for the sprint",
  "id": 10001,
  "incompleteIssuesDestinationId": 10001,
  "name": "Sprint 1",
  "originBoardId": 5,
  "self": "http://www.example.com/jira/rest/agile/1.0/sprint/10001",
  "startDate": "2015-04-11T15:22:00.000+10:00",
  "state": "active",
  "synced": true
}

Was this page helpful?