Trying to identify all pages on our Confluence instance that use the digi formatting macro and remove the macros since we are not purchasing it this coming year.
This could be the digi-accordion, digi-button, etc.
I have a CQL query to search ' type = Page AND macro = "digi-accordion" '
However, it is only showing pages I have direct access to that use the macro. I have super admin for confluence and would like to search through restrictions to find any instances that are hiding from me. I know for a fact there are more than I see as a fellow admin sees 1 extra then me and has confirmed it is due to restrictions on that page not giving me view permissions.
How do I bypass restrictions on a CQL query?
Is the count available through the Admin Macro Usage section different for each of you?
https://<confluence-url>/admin/pluginusage.action
Another option for you, if you have access to query the DB itself, is to perform this query:
/* MySQL */
select c.CONTENTID, c.CONTENTTYPE, c.TITLE, c.LASTMODDATE, s.SPACEID, s.SPACEKEY, s.SPACENAME
from confluence.content as c
join confluence.bodycontent as bc on c.CONTENTID = bc.CONTENTID
join confluence.spaces as s on c.SPACEID = s.SPACEID
where bc.BODY like '%ac:name="digi-accordion"%'
I don't know for sure if the macro name is "digi-accordion" but that can be found by reviewing the page's storage format.
@Matt The Macro Usage Page is based on CQL as well - follow any link and check the URL of the search results page ;-)
@Joshua May I'm not aware of any way to trick CQL. Best to hand over the SQL provided by Matt to your fellow DBA.
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.