CQL operator
<= (less than or equal) in CQL: syntax and examples
The <= operator keeps content whose date is the value or earlier. With a date-only value the whole day counts as included, which makes it the natural upper bound for a period. Use it with created and lastModified.
Syntax
f
i
e
l
d
<
=
v
a
l
u
e
Arguments
| Argument | What it does |
|---|---|
field | created or lastModified. |
value | A quoted date or date and time, or a date function such as endOfMonth("-1M"). |
Works with
- Fields: Created, LastModified (the only fields the field reference lists for range operators)
- Functions: now(), startOfDay(), startOfWeek(), startOfMonth(), startOfYear(), endOfDay(), endOfWeek(), endOfMonth(), endOfYear()
- Not with: ancestor, content, creator, contributor, favourite, id, mention, owner, parent, watcher (Operator '<=' is not supported), and text-type fields such as title, space, type, label (Could not parse cql)
Examples
lastmodified <= "2026-11-01"Everything last changed on or before the first of the month, the closing date of a reporting period.
Run on Confluence Cloud on .
lastmodified <= now("-8w") AND type = pagePages not edited in the last eight weeks, a rolling review list.
Run on Confluence Cloud on .
lastmodified <= endOfMonth("-1M") AND type = page AND space = SDPages whose last edit was in last month or earlier, handy on the first day of a new month.
Run on Confluence Cloud on .
created <= "2026-11-01" AND type = page AND ancestor = 655541Pages under a space home that existed by a given date, for a before-and-after comparison.
Run on Confluence Cloud on .
lastmodified <= "2026-11-01 12:00" AND type = pagePages last edited up to noon on a given day, when you need a time cut-off.
Run on Confluence Cloud on .
Pitfalls
- The docs example in the LESS THAN EQUALS section is
created >= startOfWeek("-1w") and type = blogpost. It uses >=, not <=, and it also describes blog posts since the start of the fortnight. It runs, but it does not show this operator. - A date-only value includes its whole day:
lastmodified <= "2026-11-01"keeps edits made at any time on the first, while<would stop at midnight (checked on Confluence Cloud, November 2026). - Do not expect <= to work on titles or other text.
title <= "Company handbook"fails with "Could not parse cql".