The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Trudy P 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.