Hello community,
is there any DB query how to pull all used gadgets on all dashboards ? We need to find where and which native/3rd party dashboard gadgets are used.
You could probably build something from this (postgres):
SELECT pp.pagename, pc.gadget_xml, count(pc.gadget_xml) FROM portalpage pp JOIN portletconfiguration pc ON pp.id = pc.portalpage WHERE pc.gadget_xml NOT LIKE '%pyxis.greenhopper%' GROUP BY pp.pagename, pc.gadget_xml;
where:
portalpage = dashboard
portletconfiguration = dashboard gadget
I also chose to use WHERE pc.gadget_xml NOT LIKE '%term%' because I wanted to filter out any out of box gadgets, e.g. jira agile (greenhopper), or any com.atlassian.blabla things, because without the exclusion you will probably just get a ton of native gadgets but nothing 3rd party on first sight. So I think if you take some time to exclude those you're not interested in, you should then get a decent overview of which dashboards which gadgets are used on.
Thank you Radek,
this is exactly what I was looking for.
Best,
Matej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Matej Štrba
Maybe use REST API for this: https://developer.atlassian.com/server/jira/platform/dashboard-item-module/
Let me know if that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.