Forums

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

I want to have a default filter for all users that shows tickets assigned to them and to their team

Isaac Van Baren
Contributor
August 18, 2023 edited

That is, I want a filter dependent on currentUser() and currentUser()'s team. I've tried this with project roles, groups, and every JQL combination I can think of, and I can't do it.

For example, if User1 selects the filter, it returns all issues assigned to User1's team, whether that be identified in a project role or in a user group. If User2 selects the filter, it returns all issues assigned to User2's team, ... Help!

2 answers

1 vote
Mayura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 19, 2023

Hey @Isaac Van Baren 

Good day! 

I used this JQL query to retrieve all the issues that have been assigned to either me or any member of my group.


assignee in membersOf("<group_name>") OR assignee = currentUser()


I hope this helps.

Feel free to reach out if you have any more questions. Otherwise, please make sure to mark this response as accepted :)

Thanks.

Isaac Van Baren
Contributor
August 21, 2023

@Mayura thanks! This is close! But I am looking to create this filter in such a way that it dynamically changes depending on which user is looking at the filter. That means "<group_name>" cannot be a static value; the filter should return one set of issues when User1, a member of Group1, selects it, and another set of values when User2, a member of Group2, selects it. Sorry if that wasn't clear from the original post!

0 votes
Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 20, 2023

Hey @Isaac Van Baren ,

To add on @Mayura answer. If you are proejct administrator/Scrum Master or Admin, configure that board and set above filter in the quick filter section. Now every time a user sees the project Board, will see the filter and can filter the tickets assigned to them only.

Suggest an answer

Log in or Sign up to answer