Scenario:
I have a CustomField of type Checkboxes "Check Variants". There are 3 values I can check: "Variant 1", "Variant 2" and "Variant 3".
A Transition should be allowed, when ""Variant 1" and "Variant 3" is select. Selection of "Variant 2" doesn't matter.
I tried something with:
cfValues["Check Variants"]*.value.contains("Variante 3")
but I'm afraid that JMWE is not able to deal with cfValues.
Question:
How gets the Groovy-Script to validate a transition, with a specific set of values from a Checkbox-Field?
Indeed, JMWE uses a different syntax to access field values. The rest is a matter of Groovy taste, I personally like this approach:
issue.get("Check Variants")*.value.containsAll(["Variant 1","Variant 3"])
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.