Going Stellar

Home/JQL reference

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

ArgumentWhat it doesOptional
valueA 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 DESC

Open 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. Use OR inside 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\"".

Sources

  1. JQL operators (Atlassian Support, Jira Cloud)
  2. JQL fields (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages