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

This widget could not be displayed.

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?

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

161 views 1 3
Join discussion

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