Hi all,
I am creating a transition validator with the Script Runner that shall work like this:
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
I think the components part should be like the following
issue.getComponentObjects().size() != 0
Hope that works
Yep, that did the trick!
Great, thnx!
Cheers,
// Svante
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.