Hello,
I've requested to make a validator that will be relevant only for project Alpha & Project Beta. The validator should be that certain field should be filled when transitioned to done.
So if i'll be clear:
When transition to done
If project = Alpha, Beta
Than: validator --> {Field Name} must be filled
Do you know how should i write it in a script?
Thanks!
Hi @Sagi Gueta ,
welcome to the Atlassian community!
You can take a look to some example at the following link https://scriptrunner-docs.connect.adaptavist.com/jiracloud/validators.html
Btw, you validator should be something like :
if(issue.project.key.equalsIgnoreCase("Alpha") || issue.project.key.equalsIgnoreCase("Beta")){
if(issue.customfield_YOUR_CF_ID_HERE == NULL)
return false;
}
return true;
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.