Hi,
I'm working on a transition of a workflow and I've added the following validator:
issue.get("Custom field Users")?.any{it.isInGroup("My Group")}
It works fine if I want to check whether at least one user contained in the field "Custom field Users" belongs to the group "My Group".
My goal is to check whether at least one user contained in the field "Custom field Users" doesn't belong to the group "My Group". How should I write the validator? Probably is just a NOT to be added but I didn't manage to solve the problem.
Thanks,
Giuseppe
Hi @giuseppe IN , welcome on the community :)
Did you try?
issue.get("Custom field Users")?.any{ !it.isInGroup("My Group") }
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.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline 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.