Hi, How do we get list of Stories which have Sub-Tasks with specific status.
Ex:
US# 1234 has 10 Sub-tasks with all of them in Cancelled Status.
US# 3456 has 10 Sub-tasks with 5 Tasks in Cancelled and 5 in To Do.
So When I run the query, I want the list to produce only US# 1234. (I want to exclude Stories if any of the sub-tasks under that story has other than Cancelled status.
I tried with below query: But it still returns 3456 also.
project = ABCD and issueFunction in linkedIssuesOf("status not in ('To Do', 'Done', 'In Progress') and issuetype=sub-task") and resolution is empty
Hi @bravedj
Welcome to community.
If you have Script Runner add-on, the following query will work.
type = Story and not issuefunction in parentsOf("status != Cancelled")
It will return US# 1234 issue. Because it is a Story and it has sub-tasks with all of them in Cancelled Status.
Regards
Thank you so much!
By anyway, we can exclude the Stories which do not have any sub-tasks?
Right now above query returns other Stories which do not have any Sub-tasks also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome.
Please use this one:
type = Story and not issuefunction in parentsOf("status != Cancelled") and issueFunction in hasSubtasks()
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.