Forums

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

Is there a way to add leading zeros to the generated JIRA issue number

Jeannine Hooper-Yan
Contributor
March 22, 2016

Is there a way to add leading zeros to the generated issue number so we can get a numeric sort over the text field?  Example:  PRJ-0001 instead of PRJ-1

2 answers

1 accepted

2 votes
Answer accepted
Robert Massaioli (Atlassian)
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2016

If you just want to sort it correctly then it is important to note that the JQL:

order by key

Will work on numerical ordering as expected.

0 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.
March 22, 2016

No.  You would need to rewrite a load of the core code to do it, and quite probably, some of the add-ons.

Suggest an answer

Log in or Sign up to answer