Confluence 5.8 has reached end of life
Check out the [latest version] of the documentation
CQL (Confluence Query Language) is a query language developed for Confluence, which you can use in some macros and the Confluence search. Confluence search and CQL-powered macros allow you to add fields to build up a search query, adding as many fields as you need to narrow down the search results.
You can use the following CQL fields to build your query:
| Field | Required | Description | Operators |
|---|---|---|---|
| Label | Yes | Include pages, blog posts or attachments with these labels. | OR (multiple values in the same field) AND (multiple Label fields) |
| With ancestor | No | Include pages that are children of this page. This allows you to restrict the macro to a single page tree. | OR (multiple values in the same field) |
| Contributor* | No | Include pages or blog posts that were created or edited by these people. | OR (multiple values in the same field) |
| Creator | No | Include items created by these people. | OR (multiple values in the same field) |
| Mentioning user | No | Include pages and blog posts that @mention these people. | OR (multiple values in the same field) |
| With parent | No | Include only direct children of this page (further sub-pages won't be included) | EQUALS (one page only) |
| In space | No | Include items from these spaces. | OR (multiple values in the same field) |
| Including text* | No | Include items that contain this text. | CONTAINS (single word or phrase) |
| With title | No | Include items that contain this text in the title. | CONTAINS (single word or phrase) |
| Of type* | No | Include only pages, blogs or attachments. | OR (multiple values in the same field) |
* You can add these fields in CQL-powered macros, but not in search. You can still filter using the same information in search, but they're managed by equivalent search filters so don't appear in the Add a filter menu.

