Forums

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

Search for matching groups for the current user with Scriptrunner Enhanced Search

Fabian_pallestrong June 10, 2025

Is it possible with Scriptrunner Enhanced Search JQL to dynamically query all tickets assigned to a group of which I am a member as the current user?

Can I also filter with the Teams field?

If yes can somebody privide me the JQL query?

1 answer

1 accepted

1 vote
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
June 10, 2025

Hi Fabian,

Unfortunately, Enhanced Search does not provide any functions for querying groups, so this requirement will not be possible with Enhanced Search by ScriptRunner in Jira Cloud.

You can, however, achieve this partially out-of-the-box with JQL in Jira using the members query. 

You can do a query like below, where you would replace the group inside membersOF() with the group name, and this would return issues assigned to the current user from this group.

 assignee IN membersOf("jira-administrators") AND assignee = currentUser()  

Using this, you would need to multiply statements like this and join them together in a search using the AND keyword as a workaround. 

I hope this helps.

Regards,

Kristian  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events