Hi,
I'm making a simple script validator with Script-Runner on a workflow transition, and I want to ensure if project "ABC" or "DEF" is selected then the Sprint field should not be empty.
I can't find documentation on how to write something like this.
Could someone help me out with this?
Thanks.
if (issue.projectObject.key in ["ABC", "DEF"]) { return cfValues["Sprint"] } else { return true }
Exactly what I was looking for.
Is there any detailed document for future references? So far i've seen just some particular examples.
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.