JQL operator
CONTAINS (~) in JQL: syntax and examples
The ~ operator does a text search on fields such as Summary, Description, Environment and Comments, and on the work item key. The right-hand side uses Jira text-search syntax, so it is a word match with stemming, not a plain substring test.
Syntax
field ~ "words"
field ~ word
text ~ "words"
Arguments
| Argument | What it does | Optional |
|---|---|---|
value | A word, a quoted phrase or a pattern with * or ?. Several words are all required by default. | no |
Works with
- Fields: Summary, Description, Environment, Comments, the text field, key, custom fields that use the Free Text Searcher (Free Text Field, Text Field (< 255 characters), Read-only Text Field)
- Operators: ~ and its opposite !~
- Not with: fields that are not text, such as Status, Priority or Labels
Examples
summary ~ "login"Items whose summary has the word login, with simple word forms such as plurals matched too.
Run on Jira Cloud on .
summary ~ "log*"A wildcard at the end of the word, for every summary with a word that begins with log.
Run on Jira Cloud on .
summary ~ "checkout -redesign"Checkout items without the word redesign, to leave out the work that is already a redesign.
Run on Jira Cloud on .
summary ~ "checkout AND payment"Both words must be present, to find checkout work that also involves payment.
Run on Jira Cloud on .
summary ~ "\"user login\""An exact phrase, written with escaped quote marks inside the quoted value.
Run on Jira Cloud on .
summary ~ "checkout" AND statusCategory != Done ORDER BY created DESCOpen work that mentions checkout, newest first. A text match combined with a normal condition.
Run on Jira Cloud on .
Pitfalls
- A wildcard cannot start a word:
summary ~ "*gin"returns "The text query '*gin' for field 'summary' is not valid: the '*' and '?' are not allowed as first character in wildcard query." The same error appears for"?ogin"and"*". - Several words mean all of them:
summary ~ "login page"only matches summaries that contain both words. UseORinside the quotes, as in"login OR checkout", when you want either (checked on Jira Cloud, November 2026). - Fields that are not text fail: "The operator '~' is not supported by the 'status' field." An empty value fails too: "The field 'summary' does not support searching for an empty string."
Ready-made queries
Questions and answers
Does ~ in JQL match part of a word?
It matches words, with stemming. In a test, summary ~ "pages" found a summary containing "page". A wildcard such as log* matches words that begin with log.
How do I search for an exact phrase in JQL?
Put escaped quotes inside the value: summary ~ "\"user login\"".