parentsOf()
- Jack Nolddor (Unlicensed)
- Jack Nolddor
Description:
Searches issues which any of their subtasks satisfies the provided subquery. Note: This will not work Searches issues which any of their subtasks are closed and their resolution have been set to "Won't Do" This will work perfectly Searches issues which any of their subtasks are closed and their resolution have been set to "Won't Do" Searches issues which any of their subtasks are in proress and have been reportered by me
See also: subtasksOf()
Since you need to enclose the provided subquery using doble quotes, you must to escape any doble quotes using in the subquery by preceding a backslash after the double quotes, alternatively you can use a single quote in some cases.issue IN parentsOf("resolution = "Won't Do" AND status = Closed")
issue IN parentsOf("resolution = \"Won't Do\" AND status = Closed")
issue IN parentsOf("status = 'In Progress' AND reporter = currentUser()")
Syntax | parentsOf(subquery) |
Available since | v1.2.0-RELEASE |
Supported fields | Issue |
Supported operators |
|
Unsupported operators |
|
Examples:
• Find issues which any of their subtasks are 'Open':
issue IN parentsOf("status = Open")
• Find 'Unresolved' issues which any of their subtasks are 'Closed' and their resolution have been set to 'Won't Do'
issue IN parentsOf("resolution = \"Won't Do\" AND status = Closed") AND resolution = Unresolved
• Find issues which all their subtasks have been resolved
issue IN parentsOf("resolution IS NOT EMPTY") AND issue NOT IN parentsOf("resolution IS EMPTY")
Real World Use Cases:
· JQL to find parents where all subtasks are resolved (by Gianni Pucciani at ATLASSIAN Community).
· JQL: Find all open issues of type "Issue Tracker" where all subtasks are closed or resolved (by Normann P. Nielsen at ATLASSIAN Community).
JQL Function Reference