JQL: 'is EMPTY', '!=' and Why a Search Misses Issues With Empty Fields
Short answer: in Jira Cloud JQL, field != value only matches issues where the field has a value and that value is not value. Issues where the field is empty are left out. To include them, write (field != value OR field is EMPTY), with the parentheses. We ran each form on a dropdown, the assignee, labels and a short text field in a five-issue test project; the counts are below.
- What Atlassian says: section 1.
- Tested counts: section 2.
- The OR trap: section 3.
- Cleared fields, comments, timing: sections 4 and 5.
- A checklist: at the end.
1. What Atlassian's documentation says
From Atlassian's page Advanced search reference: JQL operators, read on December 4, 2026:
- The
!=operator "will not match a field that has no value". Its example:component != fredmatches only work items that have a component and where it is not "fred"; to include work items with no component you typecomponent != fred or component is empty. field != valueis the same asNOT field = value, andfield != EMPTYis the same asfield IS_NOT EMPTY.- The page says
!=cannot be used with text fields and points to!~(DOES NOT MATCH) instead. We note what happened on our field in section 2. ISandIS NOTcan only be used withEMPTYorNULL, and not every field supports them.
Atlassian also tracks the surprise as a suggestion: JRACLOUD-23030, "Not equals operator (!=) excludes results with empty values in JQL" (199 votes, Gathering Interest on December 4, 2026). So this is the documented behaviour, not a bug on your site.
2. What we ran and what came back
On December 4, 2026 we created a throwaway project on a Jira Cloud site with five tasks and a dropdown custom field and a short text custom field, both on the issue screen, then searched through the REST API (POST /rest/api/3/search/jql). We did not use the Jira screens. The five tasks, by field:
| Issue | Dropdown | Assignee | Labels | Text field |
|---|---|---|---|---|
| A | Red | me | x | alpha |
| B | Blue | me | y | beta |
| C | never set | none | none | never set |
| D | set, then cleared | set, then cleared | set, then cleared | set, then cleared (null) |
| E | Blue | none | none | set, then cleared (empty string) |
Every search below was limited to the test project with project = KEY AND in front. Results, as the issues each query returned:
| JQL on the dropdown | Returned |
|---|---|
dropdown = Red | A |
dropdown != Red | B, E (C and D left out) |
dropdown is EMPTY | C, D |
dropdown is not EMPTY | A, B, E |
(dropdown != Red OR dropdown is EMPTY) | B, C, D, E |
NOT dropdown = Red | B, E |
dropdown not in (Red) | B, E |
(dropdown not in (Red) OR dropdown is EMPTY) | B, C, D, E |
dropdown is EMPTY AND dropdown != Red | nothing |
dropdown != Red AND dropdown != Blue | nothing |
The same pattern held for the other three fields:
| Field | != value | is EMPTY | (!= value OR is EMPTY) |
|---|---|---|---|
| assignee, value = the account of A and B | nothing | C, D, E | C, D, E |
| labels, value = x | B | C, D, E | B, C, D, E |
| text field, value = alpha | B | C, D, E | B, C, D, E |
NOT field = valuereturned the same issues asfield != valuefor the dropdown, assignee, labels and the text field, andlabels not in (x)returned the same aslabels != x(B only).- For the assignee,
assignee != currentUser()returned nothing, since both assigned issues were ours;(assignee != currentUser() OR assignee is EMPTY)returned C, D, E.assignee = EMPTY,assignee = nullandassignee is nulleach returned C, D, E;assignee != EMPTYandassignee is not nulleach returned A, B. That matches Atlassian's equivalence statement. - Our text field was a "Short text" custom field. Atlassian's page says
!=cannot be used with text fields, but on this field!= alphawas accepted and returned B, and!~ "alpha"returned B too. We only tried this one field type, so treat the Atlassian note as the rule and our result as an observation.
3. The OR trap: always use parentheses
We ran project = KEY AND dropdown != Red OR dropdown is EMPTY without parentheses. It returned 14 issues, including issues from the site's other projects, instead of B, C, D, E. JQL evaluates AND before OR, so the query was read as (project = KEY AND dropdown != Red) OR dropdown is EMPTY, and the second half matched any issue anywhere with an empty dropdown. With parentheses the same search returned B, C, D, E. Putting the two halves in the other order inside the parentheses, (is EMPTY OR != value), returned the same issues for the dropdown, labels and assignee.
4. Fields that were cleared, and comments
- Cleared fields count as empty. Issue D had each field set, then cleared (null for the dropdown, assignee and text field, an empty list for labels), and issue E's text field was cleared by sending an empty string. All of them matched
is EMPTY. An old report thatis EMPTYdid not work for a cleared text field, JRACLOUD-74809, is Closed with resolution Fixed; in our test both ways of clearing matched. - Comments are different. We added one comment to issue A.
comment ~ "zebra"returned A, butcomment is EMPTY,comment is not EMPTY,comment !~ "zebra"andNOT comment ~ "zebra"each returned nothing, even though B to E had no comment. So you cannot find issues without comments withis EMPTYon the comment field. Our guide JQL: Find Jira Issues With No Comment in X Days tests the closest native options and a last-comment field you fill yourself; once the last comment lives in an ordinary custom field, the patterns above apply to it.
5. Timing: a search can lag behind an edit by a few seconds
In one run, we created the five issues in about 5 seconds and searched right away. The project search returned 1 issue, then 4, then all 5, about 7 seconds after the last one was created. We then cleared issue D's fields; a search for dropdown is EMPTY 1.5 seconds later did not include D, and one 2.7 seconds later did. This is one run on a small site. If a count looks wrong right after a change, search again a few seconds later before changing the query.
Checklist
- If a "not equals" search misses issues, check whether the missing ones have the field empty.
- To include empties, use
(field != X OR field is EMPTY), with parentheses. - To find only the empty ones, use
field is EMPTY;= EMPTYandis nullalso worked on the assignee. - Do not use
is EMPTYon the comment field; it returned nothing in our test. - For text fields, Atlassian says to use
!~instead of!=. - If the numbers look off right after an edit, wait a few seconds and run it again.
What we did not test
- Team-managed projects, other field types (dates, numbers, version, component, user pickers, multi-select and cascading fields), and fields with several values for
!=ornot in. - The Jira screens, basic search and saved filters; we only used the REST search.
- A text field that contains only spaces.
- Large sites: the index timing above is a single small-site observation.
FAQ
Why does 'field != value' not return issues where the field is empty? Atlassian documents it: the != operator will not match a field that has no value. In our test, a dropdown != Red returned only the issues that had some other value; the two issues with no value at all were left out. Add 'or field is EMPTY' to include them.
What is the JQL for 'is not X or has no value'? (field != X OR field is EMPTY), with the parentheses. In our test on a dropdown, assignee, labels and a text field it returned every issue except the ones that had X.
Is NOT field = X different from field != X? Atlassian's documentation says they are the same, and in our test they returned the same issues for a dropdown, assignee, labels and a text field. NOT field = X also leaves out issues where the field is empty.
Does 'field is EMPTY' find a field that was set and then cleared? In our test, yes for a dropdown, assignee, labels and a short text field. A text field cleared by sending null and one cleared by sending an empty string both matched is EMPTY.
Can I search for issues with no comments using 'comment is EMPTY'? Not in our test. comment is EMPTY, comment is not EMPTY and comment !~ returned no issues even though four of five issues had no comment. Our separate guide on finding issues with no recent comment covers the workarounds.
Why does my search with OR return issues from other projects? Because AND binds tighter than OR. 'project = KEY AND field != A OR field is EMPTY' is read as '(project = KEY AND field != A) OR field is EMPTY', so the second half matches issues in every project. Wrap the OR part in parentheses.
How soon does a search see an edit? In one run, a cleared field showed up in search results between about 1.5 and 2.7 seconds after the edit, and five newly created issues were all searchable about 7 seconds after the last one was created. That is one observation on one small site, not a guarantee.
Related guides
- JQL: Find Jira Issues With No Comment in X Days (Last Comment Date)
- JQL: Find Jira Issues Where Someone Outside Your Team Commented Last
- How to See How Long a Jira Work Item Has Been in a Status (JQL and Automation, No App)
- All Jira Cloud guides
Disclosure: Loomwise makes apps for Jira and Confluence; none is needed for or mentioned in the steps above, and we are not affiliated with Atlassian. The queries were run on a Jira Cloud site on December 4, 2026 through the REST API in a throwaway project that we deleted afterwards; we did not use the Jira screens. Atlassian's statements and vote counts were read on the same day. Last checked December 2026; Jira features change, so verify on your site. Contact: hello@loomwise.app