It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Excluding groups from creating an issue

I'm having difficulty in finding how to exclude a group (or groups) from creating issues in a Jira project.  As background, I'd desperately prefer not to create an inclusive group of users and give that the "Create Issue" permission, as the administrative overhead of maintaining this additional group would be excessive.  I've exhaustively searched the forums & interwebs for a solution, without success.

The use case I'm looking to implement is:

"Everyone can create issues, so long as you're not in Group A, Group B, or Group C."

Logically, I'd like to put a Validator on the Create transition to perform this check, but I cannot find the appropriate syntax (if it even exists) for where to insert a "not" (or "!", as the case may be).

e.g. - I know that something like this will work for an inclusive check & return a Boolean:

issue.get("creator")isInGroup("Group A")

but I need something more like this (yes, I know both of these code blocks contain errors):

issue.get("creator")isNotInGroup("Group A")

or

!(issue.get("creator")isInGroup("Group A"))

Alternatively, if someone is able to help out with how to invert the Boolean value received from the inclusive check, that would work just as well.

We currently have Scriptrunner and JMWE installed.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you