/
How to retrieve usage information of HTML for Confluence
How to retrieve usage information of HTML for Confluence
Overview
This article explains how to retrieve the usage information like the Confluence page titles, spaces, etc. where the HTML macros are used.
Instructions
Usage information through database query:
Run the following query in your database:
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:name="html"%';
If the query returns any records, it indicates that the HTML macro is being used and it displays the page title as:
Usage information through SQL for Confluence:
Alternatively, if you have the SQL for Confluence app installed in your Confluence instance, you can run the mentioned query directly on the Confluence page using the SQL macro, which returns the following results:
Test this scenario in a staging environment first before running it on a production instance.
, multiple selections available,
Related content
HTML Macro for Confluence
HTML Macro for Confluence
More like this
FAQs: HTML Macro for Confluence Cloud App
FAQs: HTML Macro for Confluence Cloud App
More like this
How to find all pages that use SQL for Confluence (Pro Edition) macros via database
How to find all pages that use SQL for Confluence (Pro Edition) macros via database
More like this
How to get the app usage of LaTeX Math macros through REST API on Confluence cloud
How to get the app usage of LaTeX Math macros through REST API on Confluence cloud
More like this
How to review the macro usage of Advanced Tables for Confluence app in the cloud
How to review the macro usage of Advanced Tables for Confluence app in the cloud
More like this
How to find Pages and Templates that use Scaffolding macros from database
How to find Pages and Templates that use Scaffolding macros from database
More like this