It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I rename a completed sprint?

An old, dummy sprint I created actually uses a naming convention that I need to use going forward. So, I now have two sprints with the exact same name; one real and one for test purposes. This is somewhat confusing for my engineers.

I know how to rename an active sprint, but is there a way to rename a sprint that was created and is now completed?

Many thanks in advance,

Lee

7 answers

1 accepted

6 votes
Answer accepted

Just had the same problem and I don't have access to query the database directly.

So I've found an alternative that seems even better, since you don't have to restart/reindex Jira. There's no back-end validation/restriction for renaming a completed sprint, so I just called the service that makes the change:

http[s]://{jira base URL}/jira/rest/greenhopper/1.0/sprint/{sprint id}

{sprint id} value can be retrieved on the report section, by inspecting (browser) the sprint name, and searching by the "data-sprint-id" attribute value.

The request must use the PUT method, and must contain some specific headers. I recommend you rename an open sprint and inspect the request done (using Network from Chrome/FF Firebug, for example), so you can replicate those headers.

A sample raw body (JSON format) for the request:

{"name":"My new name for sprint","startDate":"03/Feb/14 3:31 PM","endDate":"03/Feb/14 4:58 PM"}

Hope it helps.

Edit: Greenhopper 6.1

It worked:

USERNAME="myuser"
PASSWORD="mypass"
URL="https://myjira.atlassian.net"
SPRINTID="1"
NEW_SPRINT_NAME="my new sprint name"
NEW_START_DATE="06/Apr/14 8:00 PM"
NEW_END_DATE="14/Apr/14 1:18 PM"

curl -u$USERNAME:$PASSWORD '$URL/rest/greenhopper/1.0/sprint/$SPRINTID' -X PUT -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: pl,en-us;q=0.7,en;q=0.3' -H 'Connection: keep-alive' -H 'Content-Type: application/json; charset=UTF-8' --data '{"name":"$NEW_SPRINT_NAME","startDate":"$NEW_START_DATE","endDate":"$NEW_END_DATE"}'

Remember that user must be in Administrator role for this project.

Tested with Jira Agile 6.3.12

Like Clarinha likes this

Fyi, does not work anymore with JIRA Agile 6.7.12.

Also not working on JIRA Agile v6.4.5 - API returns error message:

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

Tracked by https://jira.atlassian.com/browse/JSW-12845

Like Clarinha likes this

Is this possible somehow in JIRA OnDemand?

In newer versions of JIRA (I'm on 7.6.3), you can do this a little more directly:

  1. Go to the Sprint Report
  2. Select the sprint you want to rename
  3. Click the ellipses button (...)
  4. Select Edit Sprint
  5. Change the name to whatever you'd like, and click Save

is not working for the latest version

 

So, any suggestion regarding this problem

 Screen Shot 2018-06-12 at 8.58.56 AM.png

Like Craig Eidson likes this

I just found the same thing, it is no longer available in Sprint Report. Is this intentional? Is there another way to rename a closed Sprint?

I was able to reopen the Sprint and update the name and close it back !

Unfortunately, doing this can mix up some time tracking & life cycle of some tickets. I would not recommend doing so.  

Like Kris Khaira likes this

FML Atlassian!

So, let me get this straight.... it was there and then they removed it!!! WTF!

Like # people like this

Atlassian, any update on this by chance?  We REALLY need to rename our sprints but do not want to re-open the sprint and mess up dates.

Like # people like this

As there is no simple way to do it in recent versions of JIRA (I am using JIRA cloud...), can we reopen this ticket ?

Reopen the sprint in Sprint Report then you can rename it on the Backlog as normal.

Yes, that solved the problem.

this solution is avaible in some versions 

This may not be a good solution. Someone above mentioned that doing this can mix up some time tracking & life cycle of some tickets.

1 vote
Yilin Mo Atlassian Team May 28, 2013

It is possible to do it via the database query:

1. Locate the sprint that you want to rename:

select * from "AO_60DB71_SPRINT" where "CLOSED" = 't';
2.  then update the related spirnt name in the name column value.
3.  You need to restart JIRA to make the modification available.

Many thanks for this. It's unfortunate that this can only be changed at the database level, but I'll speak to my JIRA adminstrator and see if he can perform this change.

How about for those of us who have Sprints from the very beginning of the Rapidboards? Isn't there going to be a problem with how the refs used to be by name (now by ID) or something?

I am hesitant to try such manual overrides directly in DB without understanding the full implications.

Thank you,

Johnny

could we do this, reopen sprint-change name of sprint then again close it

You are likely to also have to reindex your Jira instance after touching the database manually like that.

does this work on all versions?

I have v6.0.8.

Thanks, Lynn

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

2,022 views 2 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you