Forums

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

Is it possible search tickets which is currentuser's group created via JQL with membersof() function

Dear guys,

 

I want to find tickets which is the group which is included currentuser() create.

 

As far As I know, I can search the ticket which is created by currentuser via currentuser() function.

 

I found another function membersof(). But it seems like doesn't work with currentuser() or other function. I have to input specific group name only.

 

Is it right or there is way to find the ticket which is currentuser's group created?

 

Regards,

Nate.

1 answer

1 accepted

0 votes
Answer accepted
Yogesh Mude
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 24, 2019

HI 

Check with the below JQL..

reporter in membersOf("XYZ") and reporter = currentuser()

Thank, Yogesh.

 

Actually, My question is different.

 

For example, If there are A, B, C and D(D is me) users. and they are in 'AA' Group.

 

And I want to find the tickets which are created by 'AA' Group memeber via not specific group name. use function like currentuser()

Mario Carabelli
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 25, 2019

@Nate (이슬기) [Project Management]

No you can't use the results of jql functions in jql functions.

Some alternatives :

­  If you want to find all issues in projects to where the current user has acces to you can use: 

Project = projectsWhereUserHasPermission("Browse  Project"). 

Ifyou want issues where the currentUser has a specific project role you can use: 

Project = projectsWhereUserHasRole(Some Role) 

But because Groups are global and a "group" is no jql field there, is no function like groupsWhereUserIsMember() 

With kind regards

  Mario

Benny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2023
I built an automation that gets triggered whenever a group is deposited in a certain issue type, then it looks at what group members we have and sets all group members as a participant.

Then you could use this filter here: 

"Participants[User Picker (multiple users)]" = currentUser() AND GroupPickerField is not Empty

*By "participants" I don't mean the standard participant field but a newly created one which is called exactly the same and is also of the type a user-picker. :-D
And remove this field from view screen or it shoulnd´t be editable...

Suggest an answer

Log in or Sign up to answer