Searching Confluence Pages for a Specific Macro

Scenario

This recipe allows you to search through Confluence pages for a specific macro, in this case the Expanding Reporter macro.

To search for other macros, change the Contains Value parameter in the Text Filter macro to the macro name. You'd have to use the markup name of the macro for this to work. For example: "expanding-reporter" instead of "Expanding Reporter" and "content-reporter" instead of "Content Reporter".


Result


Recipe

Ingredients

Add-ons

Reporting

Platform

Server

Level

INTERMEDIATE

Estimated time

15 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Add a Report Table macro.

  2. Within the Report Table macro, add a Content Reporter macro.
    Set the Spaces parameter to "@all".

  3. Within the Content Reporter macro, add a Text Filter macro.
    For the Key parameter, use the following keychain: "content:body>text".
    Then check the Required parameter.
    For the Contains Value parameter, enter "expanding-reporter" (or any other macro you would like to search for.)

  4. Under the Content Reporter macro, create a Report Column macro.
    Set the Title parameter to "Page Title".

  5. Within the Report Column macro, create a Report Info macro.
    For the Key parameter, use the following keychain: "page:title"
    Then check the Link to Item parameter.