How to identify Rich Filter usage in Confluence Data Center

How to identify Rich Filter usage in Confluence Data Center

This article explains how to identify the usage of the Rich Filters for Jira Dashboards gadgets embedded in Confluence Data Center, using the external gadget framework, as well as gadgets added through the extension: Rich Filters: Reports and Charts for Confluence.

Instructions

  1. Identify the usage of Rich Filters added using the external gadget framework.

To retrieve a list of spaces and pages where the Rich Filters are being used, execute the following SQL query:

SELECT DISTINCT SPACES.SPACEKEY, SPACES.SPACENAME, CONTENT.Title, BODYCONTENT.body FROM BODYCONTENT JOIN CONTENT ON BODYCONTENT.CONTENTID = CONTENT.CONTENTID JOIN SPACES ON CONTENT.SPACEID = SPACES.SPACEID WHERE BODYCONTENT.BODY LIKE '%ac:name="gadget"%' AND BODYCONTENT.BODY LIKE '%com.qotilabs.jira.rich-filters-plugin%';

This is the expected output:

  1. Identify the usage of Rich Filters added using the Rich Filters: Reports and Charts for Confluence app.

To retrieve a list of spaces and pages where the Rich Filters is being used, execute the following SQL query:

SELECT c.contentid, c.contenttype, c.title, s.spacekey FROM CONTENT c JOIN BODYCONTENT bc ON c.contentid = bc.contentid JOIN SPACES s ON c.spaceid = s.spaceid WHERE c.prevver IS NULL AND c.contenttype IN ('PAGE', 'BLOGPOST') AND bc.body LIKE '%ac:structured-macro ac:name="qrfgadget"%'

 

This is the expected output:

Note: The SQL queries are based on the PostgreSQL DB. Modify it as per the DB configuration.