Forums

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

Custom script to check given value is equal or less than a number

ICU Medical
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2023

I need to add a validator with Custom script to check if given value is equal to or less than a number.

 

cfvalues[base]<=10

 

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Laurie Sciutti
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 Champions.
July 10, 2023

Hello ~ since you added the scriptrunner tag, have a look here for an example script:  https://community.atlassian.com/t5/Jira-questions/How-do-I-validate-the-value-of-a-custom-Number-Field/qaq-p/772850  

Laurie Sciutti
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 Champions.
July 10, 2023
TAGS
AUG Leaders

Atlassian Community Events