Forums

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

Help Building JQL to Keep Status of Parent-Child Work Items in Alignment

Mathew Lederman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2025

I need help building 2 queries:

  1. Find parent-level work items where
    1. Parent-Level work item is not Done (statusCategory != Done) AND
    2. All sub-task work items are Done (statusCategory = Done)
  2. Find all sub-task level work items where
    1. Parent-Level work item is Done (statusCategory = Done) AND
    2. All sub-task work items are not Done (statusCategory != Done)

Ideally, I'd like to only use natively available JQL so I can use these queries to build filters/dashboards.

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2025

Hi @Mathew Lederman 

To get a single parent issue you could do this: 

issue in portfolioChildIssuesOf("<issue-key>") and statusCategory = done

This will provide all child issues of a parent that are done

Or

issue in portfolioChildIssuesOf("<issue-key>") and statusCategory != done

This will provide all child issues of a parent that are not done

If you want to find all parents and child based on your required combinations, you will require a 3rd party app from the marketplace to extend you JQL options.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events