Hi all,
I am creating a transition validator with the Script Runner that shall work like this:
- If the checkbox "Quick Ticket" is cleared it shall allow the create transition at all times
- If the checkbox is set it shall only allow the transition if there is (at least) one value set for Component/s
- The field Component/s shall only be mandatory in this case
I have come up with the following condition in the scripted validator but I can't get the Component/s validation to work :-(
cfValues['Quick Ticket'] == null || (cfValues['Quick Ticket'] != null && issue.components != null)
It is probably really simple but I cannot figure the syntax out here.
Any suggestions are highly appreciated.
Cheers,
// Svante