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

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

1 answer

1 vote

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)

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.

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 Champion May 05, 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

93 views 0 1
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