I'm trying to create a filter that shows issues assigned to groups that a user is a member of. Can anyone help?
Scenario: We have multiple groups setup in the User Management section that members are added to. For example, we have a jira-it-cab group for change advisory board members and a jira-it-telecom group that our telecom support team members are added to, etc.
Let's say the current user is a telecom support member that is part of the jira-it-telecom group. The service desk has assigned the issue to the jira-it-telecom group, but there is not yet an assignee. It's up to the telecom team to decide who will pick up this ticket and work it.
I've tried things like currentUser() memberOf("assignment group") but can't get any JQL to return issues assigned to groups the user is a member of.
I'm essentially trying to replicate the "My Groups Work" functionality that exists in ServiceNow, for those who might be familiar with it. Any ideas?
Try something like:
assignee not in membersOf(jira-users) and statusCategory != Done
You'll have to swap out that group, of course. I use this query to make sure tickets are not assigned to users no longer with our company, but only if they're still open.
no quotes around that user group, and it only accepts one group at a time as far as I can tell.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the suggestion @Chris Buzon - Appreciate it very much!
It's very close to being exactly what we need.
Unfortunately, in my scenario the "Assignee" field is empty. So, I essentially need that exact JQL you suggested but where I can swap out "Assignee" with "currentUser".
"currentUser" in membersOf(jira-users) AND "assignment group" = "jira-users" --> Displays only tickets associated with group(s) the current user is a member of.
For example - We have a group named jira-it-telecom-support.
A ticket is submitted to our service desk and is assigned to the jira-it-telecom-support group. It will then be up to the telecom support crew to identify which telecom team member the issue will be assigned to.
The goal is to make it so people in the jira-it-telecom-support group can check a filter that shows all unassigned issues assigned to the group(s) they are currently members of. It's tough though, the currentUser function needs to essentially come after the variable.
Thanks for the suggestion though. Appreciate it very much. I owe ya one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kevin,
As I understand, you have a group picker custom field named "assignment group" and you want to search the issues with the current users' group selected as the assignment group.
If that's the case, I think the JQL function below may work for you.
"assignment group" in groupsOfCurrentUser()
This JQL is provided by the GO! JQL: Essential JQL Functions plugin. The link is here.
Please let me know if you need any assistance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sena Demir,
Thank you very much! This is extremely helpful. You have made my day. I appreciate it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.