How to edit the key number?

qa September 21, 2012

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
suraj mukihal September 22, 2012

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

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2012

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.

Suggest an answer

Log in or Sign up to answer