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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.