How to edit the key number?

I deleted one of the issue(say bug4).And when i added another issue the new key is displayed as bug5 and not bug4 ----that means bug1, 2, 3 and 5 are shown and not 4

2 answers

0 vote

Jira numbers issues sequentially within a project, so this is correct behaviour.

Jira doesn't let you change the key of an issue, unless you move it into another project. (The whole point is that the keys are unique)

So, the short answer is that you can't. Deleting and moving issues leaves "holes" in your sequences. This really is not a problem in human or information terms, you're not losing anything. But it does mean that you can't misappropriate a Jira key for generating and reusing sequential ids. If you need to do that (or your user's OCD is really that string), then you should consider finding/writing a plugin that provides a field that can generate and maintain sequential numbers for the project.

This is not even something you can do in the database. If you'd got 1,2,3,4 and deleted 4, then you could set the counter back by 1. But as you've now got 5, that would only work if you deleted 5 and rolled back to 4 being the next one again. Renumbering existing issues is an absolute nightmare, and not recommended.

Thanx Nic!!! for getting me know the uniqueness of the Key Number...

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

172 views 1 17
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you