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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,564 views 2 7
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