Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JQL to filter the parent task with status=Open with its child sub-tasks status are closed

mesinec minecc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 13, 2023

I would like to know the JQL with parent task with status=Open (To Do) while its linked child ALL sub-tasks status are closed (Approved)

The scheme is - 

Task (parent level)

Linked sub-tasks

- Sub-task 1 = Approved

- Sub-task 2 = Approved

- etc.. 

I have searched with this JQL, but it still gave me one or more of child sub-tasks are approved instead of the ALL sub-tasks are approved which I want. 

project = project-name AND issueFunction in parentsOf("issuetype in subtaskissuetypes() and status = approved") 

 

1 answer

0 votes
Trudy Claspill
Community Champion
December 13, 2023

Try this:

 

project = project-name AND issueFunction in parentsOf("issuetype in subtaskissuetypes() and status = approved") AND issueFunction not in parentsOf("issuetype in subtaskissuetypes() and status != approved") 

The new clause will look for parent issue that have subtasks that are not Approved, and ensure that such issues are excluded from your results.

Suggest an answer

Log in or Sign up to answer