Forums

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

How to create a number field that will accept multiple decimal points

Jeanne Howe
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.
December 19, 2018

We would like to bring the Jenkins build numbers into JIRA. We need the field to be searchable using the <>= functions. Since these functions are not supported when searching text fields, we need a number field. I can create the number field in JIRA, however it does not support multiple decimal points e.g. 1.0.24

We do not want to use the "version" issuetype, as we do not want to "mix" our build numbers with our release numbers. In addition, due to the high frequency of builds, keeping a build version number list updated so users could select a build version would be too difficult to manage.

For JIRA Server there are several plugins that provide custom issue types, however, we are JIRA Cloud.  

Any suggestions on how to achieve this in JIRA Cloud?

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.
December 19, 2018

There is no way to do this - a number with more than one decimal point is not a number.  You wouldn't actually be able to do this with add-ons on server either, none of the ones I'm aware of would hold something that isn't a number in a number field.

The best you can do without writing your own server App is to use a string and pad it correctly - e.g. 0000423.74.003 - that will at least remain sortable correctly.

Suggest an answer

Log in or Sign up to answer