As an alternative to some groovy looping, is it possible to make a JQL (possible using https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-hasSubtasks() ) the give the result:
Find all open issues of type "Issue Tracker" where all subtasks are closed or resolved
Community moderators have prevented the ability to post new answers.
So you want "Issue Tracker that have no subtask which are in a status different from closed or resolved:
issuetype = "Issue Tracker" and status not in(closed, resolved) and not issuefunction in parentsOf("status not in (closed, resolved)")
Maybe add some addition conditions in parentsof function (project, issuetype).
Edit: forgot that issue tracker should be open as well. Added "and status not in (closed, resolved)"
Excellent and Thanx :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This JQL worked for me:
resolution = Unresolved and issuefunction in parentsOf("type in subtaskIssueTypes()") and not issuefunction in parentsOf("resolution = Unresolved")
The above query makes sure that issues that do not have any subtasks are not returned
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.