Help with validator length limit

Angel
Contributor
December 16, 2024

Hi!

 

I wanted to limite a text-field (multi-line) to max 1000 characters on creation transition, in scriptrunner I tried with this: 

cfValues['customfield_10202'].length() < 1000

error: cannot evaluate "cfValues"

 

issue.customfield_10202.lenght < 1000?  true: false

error:  "issue.customfield_10202.length < 1000\" - operator \"<\" is not applicable to types: null and Number"

 

Would anyone help me with the correct expresion or I need cast the value of customfield? 

 

Thanks

Regards

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events