# subtype field in CQL: syntax and examples (Confluence)

URL: https://goingstellar.ro/reference/cql/subtype-field/

subtype narrows a page search to one kind of page. The documentation lists a single supported value, live, for Live Docs. It is mostly useful with a negation, to leave Live Docs out of a list of ordinary pages.

## Syntax

```
subtype = live
subtype IN (live)
```

## Arguments

- `subtype value` (optional: yes): The kind of page. Only live is documented.

## Works with

- Operators: =, !=, IN, NOT IN (as documented).
- Not with: ~, !~, >, >=, <, <=. The documentation lists no supported functions.

## Examples

```
subtype = live
```

Find all Live Docs. Run on Confluence Cloud on 2026-11-29.

```
subtype = live AND space = SD
```

Live Docs in a single space. Run on Confluence Cloud on 2026-11-29.

```
subtype = live ORDER BY lastmodified DESC
```

Live Docs with the most recently edited ones first. Run on Confluence Cloud on 2026-11-29.

```
subtype = live AND creator = currentUser()
```

Live Docs you started yourself. Run on Confluence Cloud on 2026-11-29.

```
subtype not in (live) AND type = page AND space = SD
```

Ordinary pages in a space, with Live Docs left out of the list. Run on Confluence Cloud on 2026-11-29.

## Pitfalls

- Unknown values do not raise an error. `subtype = folder`, `subtype = database` and `subtype = whiteboard` all run and match nothing (checked on Confluence Cloud, November 2026). The documentation lists only `live`, so do not expect other kinds to be searchable this way.
- `subtype ~ live` is rejected with "Operator '~' is not supported for field 'subtype'", so only equality and lists work.
- `subtype != live` matches everything that is not a Live Doc, comments and attachments included. Add `type = page` if you want pages only.

## Related

- [type](https://goingstellar.ro/reference/cql/type-field/)
- [space](https://goingstellar.ro/reference/cql/space-field/)
- [IN](https://goingstellar.ro/reference/cql/in-operator/)
- [NOT IN](https://goingstellar.ro/reference/cql/not-in-operator/)
- [creator](https://goingstellar.ro/reference/cql/creator-field/)
- [ORDER BY](https://goingstellar.ro/reference/cql/order-by/)

## Sources

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

