Versions Compared
| Version | Old Version 5 | New Version Current |
|---|---|---|
| Changes made by | ||
| Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description:
| Excerpt | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Searches issues having comments, additionally you can further refine your query by using a number expression. Note: A 'number expression' is made of an optional operator representing by its mathematical symbol and a (prositive/negative) number.
|
| Syntax | hasComments() |
| Available since | v2.0.0-RELEASE |
| Supported fields | Issue |
| Supported operators | |
| Unsupported operators |
|
Examples:
• Find issues without comments:
| Code Block | ||||
|---|---|---|---|---|
| ||||
issue NOT IN hasComments() |
• Find Stories that have three or more comments
| Code Block | ||||
|---|---|---|---|---|
| ||||
type = Story AND issue IN hasComments(">= 3") |
• Find issues within the EMEA project having less than 2 comments or with no comments at all.
| Code Block | ||||
|---|---|---|---|---|
| ||||
project = EMEA AND (issue IN hasComments("< 2") OR issue NOT IN hasComments()) |
Real World Use Cases:
· JRASERVER-40308 - JQL query to filter by comment quantity (by Vincent Chin)
· Is it possible to search for issues with no comments? (by Svante Gustafsson at ATLASSIAN Community)
· Filter issue that has comment (by Pangianto Pang at ATLASSIAN Community)
· How can I filter issues by comment count?(by Stanislav Golodov Reis at ATLASSIAN Community)
JQL Function Reference
| Page Tree | ||||
|---|---|---|---|---|
|