Hi, I need to validate a custom field value. The format is CRQ<0-9>. Total digits have to be 12. I used the below code.
if((issue.customfield_10063.match("CRQ[0-9]{12}")) ||
Hi @Priya ThirumalaiKrishnamoorth ,
here a code that should work :
def value = issue.customfield_10063
return (value == null || value == "") || value ==~ /^CRQ\d{12}$/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.