CQL operator
= (equals) in CQL: syntax and examples
The = operator keeps content where a field is exactly equal to the value you give. Use it for ids, space keys, types, titles, labels and creators. For several allowed values, repeat it with AND or OR, or use IN.
Syntax
f
i
e
l
d
=
v
a
l
u
e
Arguments
| Argument | What it does |
|---|---|
field | Any CQL field except Text, for example space, type, title, label, parent, creator or created. |
value | A word, a number, a quoted string, a date or a function such as currentUser(). |
Works with
- Fields: every field in the field reference except Text (ancestor, content, created, creator, contributor, favourite, fileExtension, id, label, lastModified, macro, mention, owner, pageStatus, parent, space, subtype, title, type, watcher)
- Functions: currentUser() on user fields, now() and the startOf/endOf date functions on date fields
- Not with: Text (use ~ instead)
Examples
space = SD AND type = page AND parent = 32964613Lists the pages sitting directly under one parent, such as a handbook, without the deeper levels.
Run on Confluence Cloud on .
title = "Company handbook"Jumps to one page when you know its full title.
Run on Confluence Cloud on .
type = attachment AND fileExtension = "svg" AND space = SDFinds every SVG file attached in a space, for an asset clean-up.
Run on Confluence Cloud on .
type = comment AND space = SDCollects all comments in a space, for example to see where review discussion happens.
Run on Confluence Cloud on .
created = "2026-11-16"Finds everything created on one calendar day, such as the day a release review was held.
Run on Confluence Cloud on .
Pitfalls
- Title matching is exact on the whole title and ignores case.
title = "Company handbook"andtitle = "company handbook"both find the page, buttitle = "Company"finds nothing. For part of a title usetitle ~ "Company"(checked on Confluence Cloud, November 2026). - The docs show
title = "\"Advanced Searching\""with escaped inner quotes. It fails with: CQL was parsed but the search manager was unable to execute the search. Write the title once in plain quotes. - With a date-only value, = matches the whole day, not midnight. Add a time such as
created = "2026-11-16 10:00"and it only matches content created at exactly that minute, so it usually finds nothing. text = checkoutfails with "Could not parse cql". A bare number as a date,created = 2026, gives the misleading message "Operator '=' is not supported for field 'created'". The value is the problem, not the operator.