19 January 2015

How to delete a closed Sprint in JIRA Agile

For now there is no feature in JIRA Agile which allows to delete closed sprints.
Atlassian has a ticket to implement it, but its status "OPEN": GHS-9220

There is a way to delete sprint by using using JIRA REST API.
You can delete sprint by executing following command:

curl -u '{user}:{password}' 'https://jira.example.com/rest/greenhopper/1.0/sprint/{sprintId}' -X DELETE -H 'Accept: application/json'
You need to replace:
{user} and {password}
with real JIRA user name and password
{sprintId}
with real sprint ID
I checked this command for JIRA OnDemand (aka Atlassian Cloud).

Sprint ID can be found via JIRA UI as described in following article: How to rename a closed Sprint in JIRA Agile

7 comments:

  1. This approach isn't working anymore. I'm getting error message now:
    {"errorMessages":["Only future sprints can be deleted."],"errors":{}}

    ReplyDelete
  2. I also get the following message:

    {"errorMessages":["Only future sprints can be deleted."],"errors":{}}

    ReplyDelete
  3. Also cannot update the old sprint:

    {"errorMessages":["Cannot update closed sprint"],"errors":{}}

    I think this is bad decision from Atlassian

    ReplyDelete
  4. Yep, I get "Cannot update closed sprint" as well. The horror.

    ReplyDelete

Profile