Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Filter query for members of a team

rwheeloc I'm New Here Sep 16, 2022

I'm trying to create a filter query that finds work assigned to members of a team across different projects.


It seems like I should be able to accomplish this by creating a team, adding the appropriate people to it, and then using a filter query like this:

assignee in membersOf("Team Name")


However Jira does not recognize "Team Name" as a group as expected by the membersOf() function, even though the Team exists with that name.


I have been able to get it to work using a string like this:

assignee in (member1,member2,member3...)

But this seems like it will be a headache to manage as people move on or off the team.


Any better way to accomplish this?



3 answers

2 accepted

1 vote
Answer accepted

Hello @rwheeloc 

Welcome to the community.

How did you define the Teams and their members? If it was the Team option under the People menu, that is not an entity that can be used in filters.

membersOf only works for User Groups. You would have to create your Team as a User Group.

0 votes
Answer accepted
Mikael Sandberg Community Leader Sep 16, 2022

Hi @rwheeloc,

Welcome to Atlassian Community!

The membersOf() function only works on groups, not the new Team feature that you find under People. So what you can do is create a new group and then your search with membersOf() should work. 

0 votes
rwheeloc I'm New Here Sep 19, 2022

Thanks Trudy and Mikael - looks like you were both right. I'd used the Team option under the People menu. I'd hoped there was a way to use the membersOf() function with a Team (since I do not have sufficient admin privileges to create a Group) but it sounds like that is not possible.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events