Unable to delete sprints created inadvertently
Asked by Prashant Amara:

Dears, Please advise/guide how to safely delete sprints with defined periods that were started and almost instantly moved to "Complete" ending up creating junk sprints that are impacting reports. Unable to delete such "Completed" but junk sprints (trial sprints).


Answers:
author: Marc - Devoteam
body: Hi [@Prashant Amara](/t5/user/viewprofilepage/user-id/5557423)

To remove completed sprints, navigate to the project and take the next steps

1. Select Reports, then Sprint Report.
2. Select the relevant sprint from the sprint drop-down.
3. Select more () \> Delete sprint.

comments: author: Prashant Amara
body: Thanks Marc. I do not see "Sprint Report" in the Reports menu.  
I have the following -

1. Burnup report

2. Sprint burndown chart (here I only have 2 options - restore or edit a sprint)

3. Velocity report

4. Cumulative flow diagram

5. Cycle time report

6. Deployment frequency report

There is none listed simply as "Sprint report"


author: Marc - Devoteam
body: Hi [@Prashant Amara](/t5/user/viewprofilepage/user-id/5557423)

Aha, your in a team managed project.

There is no option to delete sprints there, but you can use this workaround.

1. Go to Reports \> Sprint Burndown Charts
2. Choose the sprint you want to delete from the drop-down menu
3. Click on ... and choose "reopen sprint"
4. Go to backlog again and delete the sprint from there


author: Prashant Amara
body: Thanks [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) . In searching for a solution to circumvent this limitation for "Team managed project", I found this link with some additional information. I just am clueless as to how one goes about executing this code? Is there a Jira cloud shell where one could type the command?   

<https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-delete>

A little more context:  
I currently have an active sprint ongoing with team working on closing the story points. If I reopened the erroneous sprint, it may yet again "inadvertently" close the ongoing sprint and vacuum out some issues into itself. Not knowing what mess I would be walking into, I kept looking for more guidance. Hence the link about.


author: Prashant Amara
body: thread reference  
[https://community.atlassian.com/t5/Jira-questions/Delete-empty-sprints-from-a-board/qaq-p/2476869?utm_source=dm\&utm_medium=unpaid-social\&utm_campaign=P:online\*O:community\*I:social_share\*](https://community.atlassian.com/t5/Jira-questions/Delete-empty-sprints-from-a-board/qaq-p/2476869?utm_source=dm&utm_medium=unpaid-social&utm_campaign=P:online*O:community*I:social_share*)


author: Marc - Devoteam
body: Hi [@Prashant Amara](/t5/user/viewprofilepage/user-id/5557423)

If your logged on to Jira. find the sprint id's you want to delete via jql.

In you browser you can make the rest api call.

https://\<your instance name\>.atlassaian.net/rest/agile/1.0/sprint/{sprintId}

This should result in a deleted sprint


author: Prashant Amara
body: Thank you for your patient guidance dear [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) .  
I was not successful in deleting directly via the URL. Browser gets into auto-protect mode thinking i am an attacker. I am just using this as an excuse to dig deeper and look for some kind of cloud command line interface that can directly execute commands.   

I am going to mark this as an answer already simply becoz of the various scenarios and additional context discussed here as potential pointers for others.

kind regards


author: Dick
body: Sprints can only be closed by navigating first to the board on which they have been created. After taking out the issues and putting them in the backlog, you can choose **complete** sprint.   

Then, on the sprint reports page, you can find the **delete** sprint under the three-dot-menu

comments: author: Prashant Amara
body: Thank you [@Dick](/t5/user/viewprofilepage/user-id/4586768) . In my case, the sprint was already marked as complete with few Issues marked as Done. Clearly it was a unsyncronized event where remote team members (myself included) did something in a rush. I will look to remedy this without repeating the rush and alert management about the spurious velocities getting reported.


author: Dick
body: There is an option to allow just one active sprint in a project:

under Administration - Applications - Jira Software configuration

you find the option to turn parallel sprints on/off


Tags: cloud

jira-cloud

jira-software