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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

124 views 2 0
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