# comment in JQL: field syntax and examples

URL: https://goingstellar.ro/reference/jql/comment-field/

The comment field lets you search the text of comments on a work item. A work item matches when any one comment contains the words. Use it to find items where someone wrote that they are blocked or waiting, or where a keyword came up in discussion.

## Syntax

```
comment ~ "blocked"
comment ~ "\"waiting for\""
comment ~ "deploy*"
comment !~ "approved"
```

## Works with

- Field type: TEXT, no auto-complete
- Operators: ~, !~
- Functions: none
- Not with: =, !=, >, >=, <, <=, IS, IS NOT, IN, NOT IN, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

## Examples

```
comment ~ "blocked" AND statusCategory != Done ORDER BY updated DESC
```

Open work where somebody wrote the word blocked in a comment, most recently touched first. A stand-up shortcut for stuck items. Run on Jira Cloud on 2026-11-29.

```
comment ~ "\"waiting for\"" AND updated < -2w AND statusCategory != Done
```

Work that has been waiting on someone and has not moved for two weeks. Time to chase. Run on Jira Cloud on 2026-11-29.

```
comment !~ "approved" AND status = "In Progress"
```

Work in progress where no comment says approved, a check before sign-off. Run on Jira Cloud on 2026-11-29.

```
project = WEB AND comment ~ "deploy*"
```

Discussion about deploys in one project: deploy, deployed, deployment. Run on Jira Cloud on 2026-11-29.

```
comment ~ "blocked" AND comment !~ "unblocked"
```

Mentions of blocked with the word unblocked ruled out, to cut the items that were already resolved in the thread. Run on Jira Cloud on 2026-11-29.

```
comment ~ "\"My PC is quite old\"" AND comment ~ "\"My Mac is quite new\""
```

Two exact phrases that both have to appear in comments, the pattern from the Atlassian docs. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- Comments cannot be tested for being empty. `comment is EMPTY` gives "The field 'comment' does not support searching for EMPTY values." and `comment ~ ""` gives "The field 'comment' does not support searching for an empty string." Work items without comments have to be found some other way, for example by the `updated` date (checked on Jira Cloud, November 2026).
- The Atlassian docs say that on a work item with more than 1,000 comments only the most recent ones are searched. A missing hit on a very long thread does not prove the word is absent.
- Equals fails on this field: `comment = "x"` gives "The operator '=' is not supported by the 'comment' field." The field only searches comment text, so use ~ with the words you expect.
- Quotes decide what is matched. `comment ~ "waiting for"` asks for both words anywhere in the comments, while `comment ~ "\"waiting for\""` asks for the phrase.

## Questions and answers

### Does comment search cover every comment?

Mostly. For a work item with more than 1,000 comments, the Atlassian docs say JQL only searches the most recent ones.

## Related

- [summary](https://goingstellar.ro/reference/jql/summary-field/)
- [description](https://goingstellar.ro/reference/jql/description-field/)
- [CONTAINS (~)](https://goingstellar.ro/reference/jql/contains-operator/)
- [DOES NOT CONTAIN (!~)](https://goingstellar.ro/reference/jql/does-not-contain-operator/)
- [text](https://goingstellar.ro/reference/jql/text-field/)
- [updated](https://goingstellar.ro/reference/jql/updated-field/)

## Sources

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

