CQL field
title in CQL (Confluence): syntax and examples
The title field searches only the title of the content. Use = when you know the whole title, and ~ when you remember a word or two. It is the quickest way to find a runbook, a policy or a template without searching the page body.
Syntax
title = "Full title"
title ~ "word"
title ~ "wor*"
Arguments
| Argument | What it does |
|---|---|
value | The title text in double quotes. With = it must be the whole title. With ~ it can be one or more words, with * for several characters and ? for one. |
Works with
- Operators: =, !=, ~, !~. The field reference also lists IN and NOT IN as unsupported, but both ran (see the pitfalls)
- Functions: none
- Not with: >, >=, <, <=
Examples
title = "Company handbook"Opens one page by its full title.
Run on Confluence Cloud on .
title ~ "runbook" AND type = page ORDER BY lastmodified DESCLists all runbooks, newest edit first, so the stale ones are easy to spot at the bottom.
Run on Confluence Cloud on .
title ~ "polic*" AND space = SDFinds policy pages whatever the exact wording, using a trailing wildcard.
Run on Confluence Cloud on .
title in ("Code of Conduct", "Company handbook")Fetches a fixed set of pages by name, for example the pages a new hire must read.
Run on Confluence Cloud on .
title !~ "template" AND type = page AND space = SDRemoves template pages from a list of real documents.
Run on Confluence Cloud on .
Pitfalls
- The documentation example
title = "\"Advanced Searching using CQL\""does not work. With a real title,title = "\"Code of Conduct\""fails with HTTP 400: CQL was parsed but the search manager was unable to execute the search. Write the title once in plain quotes:title = "Code of Conduct". - The phrase form
title ~ "\"...\""is unreliable when a short word sits in the middle.title ~ "\"Remote Work Guidelines\""finds its page, buttitle ~ "\"Code of Conduct\""andtitle ~ "\"Travel and Expense\""find nothing, although both titles exist. Without the inner quotes,title ~ "Code Conduct"matches, and so do the words in any order. =needs the whole title but ignores case, and it also matched a title written with an em dash when typed with a hyphen.title = "Company"finds nothing,title ~ "Company"does. Stems match (policiesfinds Policy), but a cut-off word does not:title ~ "polic"finds nothing,title ~ "polic*"does.- The doc table says IN and NOT IN are unsupported.
title in ("A", "B")andtitle not in (...)both ran (checked on Confluence Cloud, November 2026).
Questions and answers
What is the difference between title ~ and text ~?
title ~ looks only at titles. text ~ also reads the body and labels.