Any way to determine which filters are used on dashboards?


I'd like to list all filters and potentially map them to the dashboards they are associated to. I can find all filters in the DB (searchrequests table) but I can't seem to find a link between a dashboard and a filter.

I'd like to determine which filters (my own filters) are being used on dashboards since I want to delete a few of them. The info if a filter is being marked as a favourite is helpful but I'd need the dashboard info aswell.

Any ideas?

Cheers Christian

2 answers

1 accepted

SELECT * FROM `jira_prod`.`portalpage` p inner join portletconfiguration c on = c.portalpage 
LEFT JOIN gadgetuserpreference g on c.ID = g.portletconfiguration
LEFT JOIN searchrequest s ON s.ID = SUBSTRING(g.USERPREFVALUE,8,5)   
like "filter%"order by p.ID

I think you need to join the portalpage table (dashboards) to the portletconfiguration (instance of a gadget on a dashboard) to the gadgetuserpreference (USERPREFKEY='projectorFilterId') then onto the searchrequests table..... not sure I have the stomach for doing the actual SQL myself!

Looks like you've done it ;-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,096 views 4 9
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