Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Display issues assigned to current user's groups

Kevin Newby
Contributor
January 11, 2023

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?

1 answer

0 votes
Chris Buzon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2023

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.

Chris Buzon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2023

no quotes around that user group, and it only accepts one group at a time as far as I can tell.

Kevin Newby
Contributor
January 13, 2023

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.

Like Chris Buzon likes this
Sena Demir _ALMBASE_
Atlassian Partner
May 18, 2023

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.

Documentation

Like Kevin Newby likes this
Kevin Newby
Contributor
May 18, 2023

Hi Sena Demir,

 

Thank you very much!  This is extremely helpful.  You have made my day.  I appreciate it!

Like Sena Demir _ALMBASE_ likes this

Suggest an answer

Log in or Sign up to answer