List of Jira Dashboards that contain an EazyBI gadget

Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 3, 2024

Hi Community,

 

I'm looking for a way to make a list of Jira Dashboards, that contain at least 1 EazyBI gadget (report or dashboard). Is there a way to do this through a DB query, or the usage statistics in EazyBI ?

 

Best regards,

Kris

 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Steven Schouppe
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 3, 2024

@Kris Dewachter 

This query seems to work on Postgres: 

SELECT pagename AS "Dashboard Name", username AS "Owner", gadget_xml AS "Gadget Type"
FROM portalpage
JOIN portletconfiguration ON portalpage.id = portalpage
WHERE gadget_xml LIKE '%eazybi%'

Cheers,
Steven 

1 vote
Zane eazyBI Support
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.
October 4, 2024

Hi @Kris Dewachter

eazyBI usage statistics can answer which reports and dashboards are published on Jira or Confluence, but not from the opposite. For example, the dimensions "Report Location" and "Report" used with the measure "Report Executions" would show where users see those reports. However, this does not include the Jira dashboard name, as eazyBI does not have this information.

 

If you want to know the Jira dashboards, the best option is to search in the Jira database (for Data Centers), as @Steven Schouppe suggested.

A more advanced query for Postgres below returns the Jira dashboard name, eazyBI report or dashboard ID, and eazyBI account ID to find those reports in eazyBI.

SELECT 
portal.pagename AS jira_dashboardname,
gadgetpref.userprefkey AS eazyBI_gadget_type,
gadgetpref.userprefvalue AS eazybi_report_or_dashboard_id,
-- Include account_id using a subquery
(SELECT userprefvalue
FROM gadgetuserpreference
WHERE portletconfiguration = pgadget.id
AND userprefkey = 'account_id') AS eazybi_account_id,
1 AS rowcounter
FROM
portletconfiguration pgadget
JOIN portalpage portal ON portal.id = pgadget.portalpage
JOIN gadgetuserpreference gadgetpref ON gadgetpref.portletconfiguration = pgadget.id
WHERE pgadget.gadget_xml LIKE '%eazybi-jira%'
AND (gadgetpref.userprefkey = 'dashboard_id' OR gadgetpref.userprefkey = 'report_id');

 

Best regards,

Zane / support@eazyBI.com

TAGS
AUG Leaders

Atlassian Community Events