Forums

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

How can I preserve the leader zero in a JIRA number custom field?

Greg Warner May 16, 2013

I'm performing an import from a csv using the jelly runner. Is there a way I can maintain the leading zeros in a number field? Is the only option to use a text field?

1 answer

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.
May 16, 2013

No, because numbers, by their definition, do not have leading zeroes. A number padded with unnecessary zeroes is a string. (How would a compute know how many zeroes to pad any given number with? Do you pad numbers with 0's in real life?)

You do have options though - find or write a field that holds numbers, but displays them with your padding

Suggest an answer

Log in or Sign up to answer