Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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 Leaders.
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 Leaders.
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)

 

Suggest an answer

Log in or Sign up to answer