Forums

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

Is there a way that I can create a filter that just has users names to use in other filters?

Cash Coyne
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.
March 18, 2022

I know that I can do something like this:

Approver in (Jsmith,BJones,TBarton)

But I want to be able to have a filter with those userids in a variable or filter, like with the name "Team Members" where I can say something like this:

Approver in TeamMembers or Validator in TeamMembers or Assignee in TeamMembers

 

Just trying to not have to have to repeat all the names in multiple places

 

And preferably a solution that doesn't require JIRA admin privileges, just project admin (it makes life easier that way ;) ), 

Any suggestions?

 

TIA

 

 

2 answers

1 accepted

0 votes
Answer accepted
Ste Wright
Community Champion
March 20, 2022

Hi @Cash Coyne 

The dynamic option is to use Groups - but it does require Jira Admin...

  • Create a Group, and add all relevant users to it
  • Give the Group a unique name (eg. team-1)
  • Then in JQL - you can use membersof(" ") - for example...
assignee in membersof("team-1")

 


 

The non-Admin option is to create filters you can re-use in other queries - but it would need to be one filter per user picker field.

So for example...

  • Create a search... 
assignee in (user-1, user-2, user-3)
  • Save as a filter
  • Copy the filter ID from the URL - eg. filter=10123
  • Use the filter in other assignee-based searches - for example, to find all issues assigned to users 1-3, which are Done, you might use...
filter = 10123 AND status = Done

You'd then need to create a filter for reporter, approver, validator, etc

 


Let us know if either of these work for you!

Ste

1 vote
Piyush A (STR)
Community Champion
March 18, 2022

Probably you can do something as create different filter named as "Assignee Filter", "Reporter Filter" and get the filter ID of it.

Then as when you try to run another filters, then you can reference above filters in it.

 

Ex. project=abc and status in (done,closed) and filter=<above ID of the filter>

 

Alternative, You may ask your jira admin to create some groups (if multiple list of users) - and then as  when you write any filter, then you can always use as assignee or reporter then followed by in jql membersof('group').

Suggest an answer

Log in or Sign up to answer