Can we reset the issue id in a project by deleting all the issues of that project

Ankur Mehrotra May 4, 2015

Can we reset the issue id in a project by deleting all the issues of that project

1 answer

1 vote
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.
May 4, 2015

No.

You need to delete them all and then make a database change (it's always risky doing that, but resetting a project counter is a reasonably safe database hack.  You will need to have JIRA offline while you do it)

Simon Kegel //SEIBERT/MEDIA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2015

Or you delete the project and create a new similar one - same effect But in this way you have to change the schemes again if they aren't set default.

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.
May 5, 2015

Although more recent versions of JIRA remember dead projects and block the re-creation. I don't know if there's a way to supress that. The other problem is if you have issues you have moved out of the "dead" project. Let's say you create ABC-1, ABC-2, ABC-3, then move ABC-2 into XYZ where it becomes XYZ-45. Then you delete project ABC. If you now search for ABC-1 or ABC-3, you will get "issue is not there", but ABC-2 will give you XYZ-45. If you delete and reset the numbers, when you create ABC-2, you may find some odd issues with it, especially if it was ever in an Agile Sprint (although the behaviour should be that ABC-2 now refers to the new one at all times)

Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 5, 2015

I agree with Nic. The safest course is to create a new project and remove all permissions to the old one. I recommend never deleting anything unless it was a project used to test JIRA schemes or train folks on JIRA. Anything that was ever production might be called for again. Just search the forum for reference to how to undelete or restore issues or projects and you'll see it WILL come back to haunt you or your replacement someday.

Suggest an answer

Log in or Sign up to answer