Assignee was not in a group

Hi Everyone,

We're using Jira 5.2. and I'm trying to create a filter that gives me the issues that were NOT assigned to anyone outside of a particular user group in the last 4 hours. (In other words: issues that were ONLY assigned to 1 or more users in "mygroup".)

I've tried this JQL query, but it doesn't seem to work:

assignee WAS NOT in NOT membersOf("mygroup") AFTER -4h

There are hundreds of users excluded from "mygroup" and unfortunately there is no user group that includes all of them.

However, users inside and outside of "mygroup" can be identified by a specific text string in their e-mail address: All users have "foo-mygroup" / "foo-notmygroup" in their e-mail address. So I also tried the following:

assignee WAS not "foo-notmygroup" AFTER -4h

assignee CHANGED from "foo-notmygroup" to "foo-mygroup" AFTER -4h

Alternatively, I could also live with a filter that gives me the issues where the field assignee was not updated by members excluded from "mygroup" in the last 4 hours.

assignee NOT CHANGED by "foo-notmygroup" AFTER -4h
assignee NOT CHANGED by NOT membersOf("mygroup") AFTER -4h

I have no luck here either. None of my JQLS seem to be valid.

Any ideas are highly appreciated.

Thank you very much!

Tibor

1 answer

Why are you using groups if, as you stated

There are hundreds of users excluded from "mygroup" and unfortunately there is no user group that includes all of them.

Seems you should definitely not be using membersOf.

The JQL Tricks Plugin seems to have what you're looking for:

User Functions

  • membersOfGroups(group1,group2,..,groupN)
  • projectLeads()
  • projectLead(project)
  • usersInRole(project,role)
  • userMatches(regex)
  • inactiveUsers()
  • usersInTimezone(timezone)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,307 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot