CQL field
content in CQL (Confluence): syntax and examples
The content field searches by content id and is documented as an alias of id. Use whichever name reads better in your saved filter. The accepted values, operators and errors are identical.
Syntax
content = 32964613
content in (32964613, 655541)
Arguments
| Argument | What it does |
|---|---|
value | A content id: a plain number for pages and comments, or att followed by the number for an attachment. |
Works with
- Operators: =, !=, IN, NOT IN
- Functions: none
- Not with: ~, !~, >, >=, <, <=
- Alias of: id
Examples
content = 32964613Finds the page with a known id, for example the company handbook.
Run on Confluence Cloud on .
content in (32964613, 655541)Returns several known pages in one query, such as the handbook and the space home.
Run on Confluence Cloud on .
content = att655572Finds a single attachment from its API id.
Run on Confluence Cloud on .
content = 32964613 AND space = SDChecks that a page id really belongs to the space you expect before a script acts on it.
Run on Confluence Cloud on .
content not in (32964613, 655541) AND space = SD AND type = pageLists all pages in a space except a few that a report already covers.
Run on Confluence Cloud on .
Pitfalls
- Alias means the same results, not a different field.
content = 32964613andid = 32964613find the same page, andcontent in (32964613, 655541)matchesid in (32964613, 655541)(checked on Confluence Cloud, November 2026). - The name
contentis easy to confuse withtypeor with text search. It does not search page bodies. For words inside a page usetext ~ "word". - The same errors apply as for id:
content = abcfails with: Can't parse as a ContentId, andcontent = 655572(an attachment id without the att prefix) runs but matches nothing.