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


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

Similar pages 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:

  1. Create template with name “Confluence Search Entry Template”

  2. Add CQL Search Macro in the template

    1. Set the CQL to find all pages and blogposts which is labelled with confluence and contains the keyword matching with page title of the current page

      label = ‘confluence’ AND type IN (blogpost, page) AND text ~ $$query*$$ 
    2. Set Default Query Term to $self which will replace $$query*$$ with the title of the current page containing the CQL Search Macro