# !~ (DOES NOT CONTAIN) in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/does-not-contain-operator/

!~ keeps the work items whose text field does not match the search words. It is the negative form of ~ and it works on Summary, Description, Environment, Comment, text custom fields and the work item key. Use it to cut noise out of a list.

## Syntax

```
f
i
e
l
d
 
!
~
 
"
w
o
r
d
s
"
```

## Works with

- Fields: Summary, Description, Environment, Comment, text custom fields (free text), work item key
- Not with: Status, Assignee, Priority and other non-text fields
- Related: the text field searches Summary, Description, Environment, Comments and all text custom fields at once

## Examples

```
project = WEB AND summary !~ "redesign" ORDER BY created DESC
```

WEB work that has nothing to do with the redesign, newest first. A quick way to separate a big theme from day-to-day tasks. Run on Jira Cloud on 2026-11-29.

```
project = WEB AND description !~ "login" AND statusCategory != Done
```

Open work whose description never mentions login. The search covers the description only, so a login summary can still appear. Run on Jira Cloud on 2026-11-29.

```
summary !~ "log*"
```

A wildcard at the end of the word excludes login, logs, logging and similar. Stemming and wildcards work in the negative form too. Run on Jira Cloud on 2026-11-29.

```
key !~ "WEB-1*"
```

Keys that do not start with WEB-1, which leaves out WEB-1 and WEB-10 to WEB-19. The key is matched as text. Run on Jira Cloud on 2026-11-29.

```
project = WEB AND summary !~ "redesign" AND summary !~ "login"
```

Excludes items that mention either word. Each word gets its own condition, see the pitfall on several words. Run on Jira Cloud on 2026-11-29.

```
project = WEB AND NOT summary ~ "redesign"
```

The NOT keyword in front of ~ gives the same list as !~. Pick whichever reads better in a long query. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- Items with an empty field are not returned: `description is EMPTY AND description !~ "checkout"` finds nothing. Query the empty ones separately with `description is EMPTY` (checked on Jira Cloud, November 2026).
- Several words inside one value are combined with AND before the negation. `summary !~ "redesign login"` removes only the items that contain both words.
- An empty string is rejected: `summary !~ ""` returns "The field 'summary' does not support searching for an empty string."
- Fields that are not text fail: `status !~ "Done"` returns "The operator '!~' is not supported by the 'status' field." Use != or NOT IN there.

## Questions and answers

### Is !~ the same as NOT with ~?

In a check on a WEB project, `summary !~ "redesign"` and `NOT summary ~ "redesign"` returned lists of the same size. The NOT form needs the NOT keyword in front of the whole condition.

## Related

- [CONTAINS (~)](https://goingstellar.ro/reference/jql/contains-operator/)
- [text](https://goingstellar.ro/reference/jql/text-field/)
- [summary](https://goingstellar.ro/reference/jql/summary-field/)
- [description](https://goingstellar.ro/reference/jql/description-field/)
- [NOT](https://goingstellar.ro/reference/jql/not-keyword/)
- [comment](https://goingstellar.ro/reference/jql/comment-field/)

## Sources

- [JQL operators (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-operators/)

