The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

how to reset the issue key number?

rakeshgowd
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!
September 25, 2019

how to reset the issue key number

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
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 Champions.
September 25, 2019

Delete all the issues in the project (not just move them, you have to delete), stop Jira, amend the counter field in the project table in the database, restart Jira and re-index it before creating issues in the project you have reset.

2 votes
Sreenivasaraju P
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 Champions.
September 25, 2019
0 votes
Oussama Brik
September 12, 2024

if you have scriptrunner

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.project.Project
import com.atlassian.jira.project.ProjectManager

Project key = ComponentAccessor.getProjectManager().getProjectObjByKey("XRM")
Long value = 0L // Will be set to 0 so the first issue will get the ID of "KEY-1"

ComponentAccessor.getProjectManager().setCurrentCounterForProject(key, value)

 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.