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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

125 views 4 9
Read article

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