how do you know if a filter is being used for a board in JIRA?

Because of this issue: https://confluence.atlassian.com/jirakb/boards-are-not-visible-after-the-filter-is-deleted-779158656.html is there an easy way to determine if a filter is being used for a JIRA board?

From what I can tell in the Manage Filters and the Shared Filters area, there is no way to tell this.

2 answers

The only way I've found is to take the Filter ID and query the database directly.  I haven't really looked to see if there's a REST call that could do it and even if there was, I'm not sure you could get a single result (set) back rather than a large list of results.

It will be something like 

select * from AO_60DB71_RAPIDVIEW rv
where rv.SAVED_FILTER_ID = yourFilterID

That will give you the names and owners of any Agile boards using the filter

@Chris Solgat Is there any other way to check which filters are being used by Boards instead of touching the Database? Or can we get this from URL or an filter ID pattern for Boards?

I had to do this recently to find boards based on queries that used free text matches (which can be inefficient):

select sr.authorname, board.name, sr.reqcontent
from searchrequest sr
join AO_60DB71_RAPIDVIEW board on sr.id = board.saved_filter_id
where sr.reqcontent like '%text ~%'
order by sr.authorname;

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,711 views 17 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you