# CONTAINS (~) in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/contains-operator/

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

- `value` (optional: no): A word, a quoted phrase or a pattern with * or ?. Several words are all required by default.

## 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 2026-11-29.

```
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 2026-11-29.

```
summary ~ "checkout -redesign"
```

Checkout items without the word redesign, to leave out the work that is already a redesign. Run on Jira Cloud on 2026-11-29.

```
summary ~ "checkout AND payment"
```

Both words must be present, to find checkout work that also involves payment. Run on Jira Cloud on 2026-11-29.

```
summary ~ "\"user login\""
```

An exact phrase, written with escaped quote marks inside the quoted value. Run on Jira Cloud on 2026-11-29.

```
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 2026-11-29.

## 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

- [Summary contains words](https://goingstellar.ro/tools/jql-examples/#summary-words)
- [Summary contains an exact phrase](https://goingstellar.ro/tools/jql-examples/#summary-phrase)
- [Text anywhere: summary, description, comments](https://goingstellar.ro/tools/jql-examples/#text-anywhere)

## 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\"".

## Related

- [DOES NOT CONTAIN (!~)](https://goingstellar.ro/reference/jql/does-not-contain-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/)
- [comment](https://goingstellar.ro/reference/jql/comment-field/)
- [key](https://goingstellar.ro/reference/jql/issuekey-field/)

## Sources

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

