I'm looking for the right query that will list up the tasks that are in progress BUT only if ALL subtasks are completed.
I have this query:
(issuetype = Task and issuefunction in parentsOf("status = completed") and status = "In Progress"))
but this also shows the tasks when one of the subtasks are completed.
How can I change my query so it will only show if ALL subtasks are completed?
Hi,
does this help you?
issuetype = Task and issuefunction in hasSubtasks() AND NOT issuefunction in parentsOf("status not in (Done, Closed)")
It uses the JQL function "issuefunction" of the scriptrunner addon and searches for all issues, which are of type "Task" and have subtasks, but excludes all issues which have subtasks which are in the status "Done" or "Closed". The result is a list of issues which have subtasks and these subtasks have to be in "Done" or "Closed".
You have to exchange the status names as needed for your jira instance.
Hi,
thank you for your reply and suggestion. the query as proposed also returns the closed tasks. I added 'and status != Completed' at the end and now it gives me the correct results.
issuetype = Task and issuefunction in hasSubtasks() AND NOT issuefunction in parentsOf("status not in (Completed)")) and status != Completed
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, sorry. I deleted the "and status != Completed" part for my tests. I suggest that you reorder the query for better readability. In this way it is easier to read from left to right what is happening.
issuetype = Task AND status != Completed AND issuefunction in hasSubtasks() AND NOT issuefunction in parentsOf("status not in (Completed)"))
I'm happy to help :) have fun!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is a manual method that doesn't require buying third party addons for capabilities which should be native to Jira.
sprint in openSprints() and type in (subTaskIssueTypes()) and resolution is not EMPTY
Should also be able to do this with the google sheets integration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.