CQL Functions
Confluence Query Language (CQL) allow you to create custom CQL Functions that perform advanced searches for content in Confluence.
Your search results will take the same form as the Content model returned by the Content REST API. Some examples are:
Search all pages that contain a specific label
Retrieve all pages linked to a specific page
Search all pages that makes use of the specified plugin
CQL Resources
For help with CQL, check out Guide to CQL.
Read more about CQL Functions in Atlassian's Confluence CQL Function Module documentation.
Custom CQL Functions
Using custom CQL functions in ScriptRunner for Confluence allows you to create and share custom CQL functions (values) with your users in order to empower their search. For example, you could set a function to encompass all content with labels in your instance. For a large instance, this query could include multiple CQL statements that could get complicated very fast. Creating this custom function would allow your users to use that and perform a basic CQL query, like pages = AllAttachments
. For help with this, visit Custom CQL Functions.