CQL operator
> (greater than) in CQL: syntax and examples
The > operator keeps content whose date is later than the value. In practice you use it with created and lastModified to find what is new or what changed. The value can be a date, a date and time, or a function such as now("-4w").
Syntax
f
i
e
l
d
>
v
a
l
u
e
Arguments
| Argument | What it does |
|---|---|
field | created or lastModified. |
value | A date in "yyyy-MM-dd", "yyyy/MM/dd", "yyyy-MM-dd HH:mm" or "yyyy/MM/dd HH:mm" form, or a date function. |
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 (error: Operator '>' is not supported for field), and text-type fields such as title, space, type, label (error: Could not parse cql)
Examples
created > now("-4w")What was created in the last four weeks, a quick view of recent activity.
Run on Confluence Cloud on .
created > startOfMonth() and type = attachmentFiles added since the start of the month. The docs describe this as last modified, but the field is created.
Run on Confluence Cloud on .
created > "2026-11-01 09:00"Content created after a cut-off time on a given day, for example after a standup.
Run on Confluence Cloud on .
created > now("-4w") AND space = SD AND type = page ORDER BY created DESCNew pages in one space, newest first, for a monthly changelog.
Run on Confluence Cloud on .
lastmodified > now("-1w") AND type = attachmentAttachments edited or replaced during the past week.
Run on Confluence Cloud on .
Pitfalls
- With a date-only value, > starts after that whole day.
created > "2026-11-16" AND created < "2026-11-17"finds nothing even if pages were made on the 16th, because the 16th itself is excluded. Use >= for the day. - Dates must be quoted when they contain slashes.
created > 2026/11/01fails with "Could not parse cql", as do "11/01/2026" and "2026-11-01T09:00". An unquoted2026-11-01does work. - On a field without range support the error names the field: "Operator '>' is not supported for field 'ancestor'. Supported operators are : =, !=, IN, NOT IN". To compare ids, filter with = or IN instead.
filesize > 1000is accepted on attachments although filesize is not in the field reference, so a numeric range works there too (checked on Confluence Cloud, November 2026). The docs list only the date fields.