Can I delete all issues in a project, and start from ID ticket number 1 again?

We need to do demo on producion and then tickes will be created. We need to restore back origional start index starting from 1 again.

2 answers

1 accepted

This widget could not be displayed.

You can't without messing with the database. Just delete and recreate the project.

what about deleing projec issues from daabase and do reseeding to the icke number

Does deleing project deletes all customizaion we made regarding fields, notification, permission scheme; what are the hings I might rebuild when deleting a project?

Remember that a project is a header - it lists the field, notification, permission, screen, workflow SCHEMES that make up the project. If you delete a project, you lose the list of schemes you had in use, but you do NOT lose the schemes themselves.

Deleting and recreating a project is mostly going to be the best way - I simply take a copy of the schemes it's using before deletion. The more painful bit is components and versions if you want to preserve them.

FWIW, Deleting from the database is a monumental pain in the neck. You have to understand all the relationships and tables affected - jiraissues is a start, but you then need to deal with changegroup and changeitem, customfieldvalue, the workflow tables, and so-on. Then there's the need for downtime, proven backups and reindexing etc. It's FAR more easy to use the UI or scripts.

Yes, it deletes all customisations. You could try the script runner plugin ( which has a built-in script to copy a project with customisations (but without issues).

Great answer, Yes I think only components I need to re create them. and re-associate the fields/screens .. to the project.

I wish this is all about I need to do.

This widget could not be displayed.

JIRA Command Line Interface has a cloneProject action that will get you most of the way there. In your case, clone project to a temporary, delete old one, then clone temporary to replace the original. You will need to fix up a few things that clone doesn't currently cover. In your case, you will need to use:

--copyVersions --copyComponents --copyRoleActors

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

176 views 18 7
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