# > (greater than) in CQL: syntax and examples

URL: https://goingstellar.ro/reference/cql/greater-than-operator/

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

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

```
created > startOfMonth() and type = attachment
```

Files added since the start of the month. The docs describe this as last modified, but the field is created. Run on Confluence Cloud on 2026-11-29.

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

```
created > now("-4w") AND space = SD AND type = page ORDER BY created DESC
```

New pages in one space, newest first, for a monthly changelog. Run on Confluence Cloud on 2026-11-29.

```
lastmodified > now("-1w") AND type = attachment
```

Attachments edited or replaced during the past week. Run on Confluence Cloud on 2026-11-29.

## Pitfalls

- With a date-only value, > starts after that whole day. `created > "2026-11-16" AND created = for the day.
- Dates must be quoted when they contain slashes. `created > 2026/11/01` fails with "Could not parse cql", as do "11/01/2026" and "2026-11-01T09:00". An unquoted `2026-11-01` does 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 > 1000` is 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.

## Related

- [>=](https://goingstellar.ro/reference/cql/greater-than-equals-operator/)
- [<](https://goingstellar.ro/reference/cql/less-than-operator/)
- [created](https://goingstellar.ro/reference/cql/created-field/)
- [now()](https://goingstellar.ro/reference/cql/now/)
- [startOfMonth()](https://goingstellar.ro/reference/cql/startofmonth/)
- [ORDER BY](https://goingstellar.ro/reference/cql/order-by/)

## Sources

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

