# = (equals) in CQL: syntax and examples

URL: https://goingstellar.ro/reference/cql/equals-operator/

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

- `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 = 32964613
```

Lists the pages sitting directly under one parent, such as a handbook, without the deeper levels. Run on Confluence Cloud on 2026-11-29.

```
title = "Company handbook"
```

Jumps to one page when you know its full title. Run on Confluence Cloud on 2026-11-29.

```
type = attachment AND fileExtension = "svg" AND space = SD
```

Finds every SVG file attached in a space, for an asset clean-up. Run on Confluence Cloud on 2026-11-29.

```
type = comment AND space = SD
```

Collects all comments in a space, for example to see where review discussion happens. Run on Confluence Cloud on 2026-11-29.

```
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 2026-11-29.

## Pitfalls

- Title matching is exact on the whole title and ignores case. `title = "Company handbook"` and `title = "company handbook"` both find the page, but `title = "Company"` finds nothing. For part of a title use `title ~ "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 = checkout` fails 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.

## Related

- [!=](https://goingstellar.ro/reference/cql/not-equals-operator/)
- [IN](https://goingstellar.ro/reference/cql/in-operator/)
- [~](https://goingstellar.ro/reference/cql/contains-operator/)
- [AND](https://goingstellar.ro/reference/cql/and-keyword/)
- [title](https://goingstellar.ro/reference/cql/title-field/)
- [space](https://goingstellar.ro/reference/cql/space-field/)

## Sources

- [CQL operators (Atlassian Developer, Confluence Cloud)](https://developer.atlassian.com/cloud/confluence/cql-operators/)

