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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.