Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reset the Issue Sequence to 0 in Jira 4.4.5

Harish
Contributor
September 12, 2012

Hi,

We have deleted all the issues created in Jira. And now we would like to start afresh.

But then when i try to create an issue, the Issue Key takes the next sequence number instead of 1.

We want the issues to start with 1 now again after cleanup.

Is there a way to re-set the sequence to 1.?

Please let me know, its pretty urgent.

Thanks,

Harish

2 answers

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
September 12, 2012

Delete the project and re-create one with the same key. You'll need to re-apply all the schemes and users in the new project.

Harish
Contributor
September 12, 2012

Hi Nic,

Thanks for the response.

But it is very tedious process to delete all projects and re-create them . And more over assigning the users to each project takes more time.

May i know if there is any other workaround may be setting some configuration file.

Please advice.

Thanks,

harish

Nic Brough -Adaptavist-
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.
September 12, 2012

No. There's no other way in the UI.

You can do it directly in the database. This particular SQL is relatively simple and safe compared with other things people make a mess of with SQL - you set the pcounter on each project you need to reset in the "projects" table.

But, with SQL, there is no easy option - you have to stop Jira, get a backup of the database, prove it's a good backup, run the SQL, then restart Jira and re-index. (If you are only changing the counters in the project table, you do not need to re-index, unless you've got plugins that may be storing extra data about your projects)

Harish
Contributor
September 13, 2012

Hi Nic,

Thanks a lot for the response.

It really worked for me.This was very helpful.

Thanks,

Harish.

Samson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2017

Where is the SQL?

Nic Brough -Adaptavist-
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.
March 22, 2017

I'd suggest starting again, rather than necroposting on a 5 year old question.

David LeVack
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 21, 2017

Since this was the right answer, it would make sense to have the response in this threat instead of now searching for SQL.  But why bother consolidating. 

4 votes
Jason Rogers
Contributor
December 14, 2018

I know I am 6 years late with my answer... but I am going to give it anyway. When I needed to reset my projects issue key, I cloned the project and gave the clone a different name/key. Checked all the notification scheme, screen scheme, workflow conditions/post actions etc copied over, then deleted the original and gave the clone the original project name/key. Worked fine. Took 5 mins. Merry Christmas. J

jvl_share
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2020

Thanks Jason for your comment, it helped me.

David Valle
Contributor
July 31, 2020

thanks jason 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events