Going Stellar

Home/CQL reference

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

ArgumentWhat it does
fieldcreated or lastModified.
valueA 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 = page

Pages not edited in the last eight weeks, a rolling review list.

Run on Confluence Cloud on .

lastmodified <= endOfMonth("-1M") AND type = page AND space = SD

Pages 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 = 655541

Pages 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 = page

Pages 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".

Sources

  1. CQL operators (Atlassian Developer, Confluence Cloud)
  2. CQL fields (Atlassian Developer, Confluence Cloud)

Markdown version · All CQL pages