Confluence · Jira · CQL · JQL
CQL vs JQL: what's different, tested on Atlassian Cloud
Confluence's CQL looks like Jira's JQL, so habits carry over, and some of them break. We ran the same kind of query in both on 29 November 2026. Here is what differs, with the real errors.
Updated
How we checked
On 29 November 2026 we ran each pair below on our own Jira Cloud and Confluence Cloud test site, read only: JQL through the Jira search API, CQL through the Confluence search API. The errors are quoted as the APIs returned them.
The shape is the same in both languages: field operator value, joined with AND, OR and NOT, with ORDER BY at the end. The differences are in the details.
1. Different field names for the same idea
In Jira the container is a project and the field is project. In Confluence it is a space and the field is space. Neither language accepts the other's word: space = WEB in JQL fails with Field 'space' does not exist or you do not have permission to view it., even though Atlassian's Jira docs now say “space”.
The same goes for the item itself. JQL uses issue or key (issue = WEB-25). CQL uses id or its alias content with a number (id = 32964613).
Every JQL field and every CQL field has its own page in our JQL reference and CQL reference, with examples run on Cloud.
2. Function names: JQL forgives case, CQL does not
assignee = currentuser() runs in JQL. The CQL equivalent, creator = currentuser(), fails with Unable to find query function 'currentuser()'. Write currentUser() exactly.
One thing behaves the same: without the parentheses, both assignee = currentUser and creator = currentUser run without an error and match nothing, because the word is read as a plain value.
3. Date offsets need a unit in CQL
In JQL, created >= startOfDay("-1") runs and counts the number as days. In CQL the same query fails with Invalid relative date : -1. Add the unit: startOfDay("-1d") works in both.
4. NOT cannot open a CQL query
NOT project = WEB is a valid JQL query on its own. not space = SD fails in CQL with a bare Could not parse cql. Put a positive clause first: type = page and not space = SD runs.
5. No IS EMPTY in CQL
JQL finds missing values with labels is EMPTY. CQL has no IS operator: label is empty fails with Could not parse cql. The CQL operator tables list only =, !=, ~, !~, the comparison signs, IN and NOT IN.
6. parent IN works in Jira, not in Confluence
project = WEB and parent in (WEB-1) runs in JQL. In CQL, parent in (32964613) returns HTTP 500 with IllegalArgumentException executing cql, although the CQL field page lists IN as supported. Write the parents out with OR: parent = 32964613 or parent = 655541 runs.
7. Sorting by the container
project in (WEB) ORDER BY project runs in JQL. type = page order by space fails in CQL with HTTP 501 and space does not support ordering. Sorting by title, created or lastmodified works in CQL.
8. Same rule, different error messages
Both languages reject an unquoted date with slashes. JQL explains it: The character '/' is a reserved JQL character. You must enclose it in a string or use the escape '\u002f' instead. CQL only says Could not parse cql. In both, "2026/11/01" in quotes and 2026-11-01 without quotes run.
An unknown field is the other way round. JQL says Field 'foo' does not exist or you do not have permission to view it. CQL is more helpful here: No field exists with the name: 'foo' Did you mean one of : favorite, filesize, favourite, fileExtension.
The errors each operator and function returns are listed on its page in the JQL reference and the CQL reference.
What carries over unchanged
Lowercase and, or, not and order by work in both. Text search uses ~ and !~ in both, and ORDER BY takes desc in both: project = WEB order by created desc and type = page and space = SD order by created desc both run.
Sources
Questions and answers
Can I paste a JQL query into Confluence search?
Rarely as is. Field names differ (project vs space, issue vs id), and CQL rejects some JQL habits such as a leading NOT, IS EMPTY and date offsets without a unit.
Is CQL case sensitive?
Function names are: currentuser() fails, currentUser() works. Keywords are not: and, or, not and order by work in lowercase.
How to cite this
Going Stellar (2026). CQL vs JQL: what's different, tested on Atlassian Cloud. GOING STELLAR S.R.L..
https://goingstellar.ro/methods/cql-vs-jql-differences/