Going Stellar

Home/JQL reference

JQL field

comment in JQL: field syntax and examples

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 .

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 .

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

Work in progress where no comment says approved, a check before sign-off.

Run on Jira Cloud on .

project = WEB AND comment ~ "deploy*"

Discussion about deploys in one project: deploy, deployed, deployment.

Run on Jira Cloud on .

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 .

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 .

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.

Sources

  1. JQL fields (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages