custom field validation
Hi,
I am using JIRA 6.2.9 version, I wanted to validate numeric value. field should allow integer value. please suggest on the same.
Regards, Savita
Comments (7)
-
repo owner -
Account Deleted reporter yes I don't want fractional part, I added one number custom field which allow decimal value also I want to validate user should enter only integer, and also is it possible to validate number of digit in the field? like field should allow to enter only 3 digit.
Please suggest on the same.
Regards, Savita
-
repo owner It's a number field, so 3 and 003 is the same. I can validate that number is between 0 and 999 and it doesn't have fractional part. Is it right for you?
-
Account Deleted reporter yes
-
repo owner You should use "Boolean condition with math, date-time or text-string terms" with the following configuration:
Boolean expression is:
{nnnnn} = round({nnnnn}) AND {nnnnn} >= 0 AND {nnnnn} <= 999
Replace nnnnn with the field code in your JIRA instance. In my screenshot it's 10001.
-
Account Deleted reporter thank you, this is working
-
repo owner - changed status to resolved
- Log in to comment
Do you want to ensure the value of a Number custom field is integer, i.e., there is no fractional part?