Canned Search for Confluence
Breadcrumbs

CQL Search Macro

Introduction


The CQL Search Macro allows users to execute contextual searches with predefined CQL. Some possible scenarios are to do title/keyword search within

  • blog posts for scheduled maintenance

  • meeting minutes for the project

  • child pages of the SOP page

  • training slides (attachments labelled with training)

CQL Search Macro.png

Configuration


Field Name

Required

Default Value

Explanation

Additional Information

CQL

https://akeles.jira.com/wiki/s/-607157113/6452/dcac233cd72e085e65b2712b2fb56d4c18aca08f/_/images/icons/emoticons/check.png


Enter a CQL statement with $$query$$ or $$query*$$ as the search term.

Hide Filenames in Excerpts



Unchecked

The files names are removed from excerpt when checked.

Please view Excerpt when filenames are removed for more information.

Default Query Term



Enter a default query term to replace the $$query$$ in CQL.
Search results will be preloaded if it is provided.

*Note: $self returns current page title

No. of Results per Page

https://akeles.jira.com/wiki/s/-607157113/6452/dcac233cd72e085e65b2712b2fb56d4c18aca08f/_/images/icons/emoticons/check.png

10

Select the no. of results to be displayed:

  • 5 — Pagination will occur if there are >5 search results

  • 10 — Pagination will occur if there are >10 search results

  • 50 — Pagination will occur if there are >50 search results

  • 100 — Pagination will occur if there are >100 search results

If there are more results than the selected no. of results to display, pagination will occur.

Custom "No Results Found" message



Enter a customised message when no results are found.

Features


Contextual Search with pre-defined CQL

See Useful scenarios with Canned Search for Confluence for suggestions on how to define CQL for creating context.

https://akeles.jira.com/wiki/download/thumbnails/87440426/canned%20search%20cql%20search%20macro.jpg?version=1&modificationDate=1571041400019&cacheVersion=1&api=v2&width=700&height=289


Search Results — with pagination

Results count and pagination is provided.

image-20210719-020548.png

No Results Found Message

From version 1.3.0 onwards, this message can now be customised to provide better information.

There will be an error message displaying suggestions for performing search if there are no result that matches the search term.

Default no result message.png