Forums

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

find filter containing epic

Johan Potums June 15, 2021

I got an epic called "epic-125"

it's included in some filter, but I do not know which one.

Can I do a search to find all filters containing the epic?

1 answer

1 accepted

1 vote
Answer accepted
Derek Fields (RightStar)
Community Champion
June 15, 2021

Short answer is that you can't with resorting to the REST API. The following REST API will return a paginated list of filters, with their JQL:

https://<your-site>.atlassian.net/rest/api/3/filter/search?expand=jql

You would need to run through all of the returned records looking for "epic-125" in the JQL.

Bill Sheboy
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.
June 15, 2021

Hi @Johan Potums  -- Welcome to the Atlassian Community!

Yes, and... to what Derek suggests, when you need to do this type of query often and for different issues, you could build an automation rule:

  • create a rule with a manual trigger
  • calls the REST API as Derek notes
  • search the response for the triggering issue key using a regular expression and text functions
  • list the filters containing the issue key

I have not built this rule, but I expect it is possible.

I believe there are also marketplace addons which enhance the ability to manage filters.

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events