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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,006 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot