Hello,
In Jira Cloud, I want to restrict a field with the type “number” to only accept values between 0 and 10 (I also want to allow double values, e.g., 0.5, 0.9, etc.). I'm writing a rule for this, but it's not accepting integer values. What should the correct rule be?
Hi Omar,
I believe you can simplify your validator to be like the one below and this should allow any value less than 10 or 10.0 in the field.
issue.customfield_12082 != null && issue.customfield_12082 <= 10.0
Hope this helps.
Regards,
Kristian
Hello Kristian,
Thank you for your response. I believe this will work.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If this solution solved your requirement Omer can you please accept the answer so that other users looking for the same requirement can see that it is correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.