Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description:
Excerpt | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Searches issues with / without subtasks, 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.
By default, this function only includes issues with at least one subtask even if you use the '<' or '<=' operator. |
Syntax | hasSubtasks() |
Available since | v2.0.0-RELEASE |
Supported fields | Issue |
Supported operators |
|
Unsupported operators |
|
Examples:
• Find issues without subtasks:
Code Block | ||||
---|---|---|---|---|
| ||||
issue NOT IN hasSubtasks() |
• Find Stories that have three or more subtasks
Code Block | ||||
---|---|---|---|---|
| ||||
type = Story AND issue IN hasSubtasks(">= 3") |
• Find issues within the EMEA project having less than 2 subtasks or with no subtasks at all.
Code Block | ||||
---|---|---|---|---|
| ||||
project = EMEA AND (issue IN hasSubtasks("< 2") OR issue NOT IN hasSubtasks()) |
Real World Use Cases:
· JRASERVER-24973 - Ability to Show Only Issues Without Subtasks (by Alyson Reis [Atlassian])
· JQL filter for Stories without Subtasks? (without plugin) (by Mike Shkolnik at ATLASSIAN Community)
· I need to find issues that has no subtask (by Jurgen Sërbo at ATLASSIAN Community)
JQL Function Reference
Page Tree | ||||
---|---|---|---|---|
|