Problem


The image below shows a simplified scenario whereby a page containing several key terms can be quickly created and can benefit from usage of CQL Search Macro.

Proposed Solution


Note: $self is recommended to be used so that pages can be created quickly as the page title will be used to as default query term

Example

The image below shows how the template can be used to collate all information on “Macro”.

Similar page can be created quickly for other terms (E.g. tutorial, testing, setup) presented in a main page.

For the above page, the template is configured as follows:

  • Create template with name “Collate for Confluence”

    • Add CQL Search Macro in Template

    • For macro,

      • Set CQL to label = ‘confluence’ AND type IN (blogpost, page) AND text ~ $$query*$$

      • Set Default Query Term to $self