Forums

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

JQL Query for pulling all subtasks of a certain issuetype?

Adrian Avalos
Contributor
March 20, 2025

Hello. Can someone provide a jql query for pulling all subtasks of a certain issue type? In my project Tasks and Stories issue types have subtasks and I'm looking for separate queries to distinguish them. I tried some of the below but no luck

 

issuetype = subtask AND PortfolioChildrenOf (issuetype = Story)

 

issuetype = subtask AND PortfolioChildrenOf (issuetype = Task)

 

issuetype = subtask AND Parent in (issuetype = Story)

 

issuetype = subtask AND Parent in (issuetype = Task)

2 answers

2 accepted

7 votes
Answer accepted
Pasam Venkateshwarrao
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.
March 20, 2025

Hi @Adrian Avalos 

Welcome to the community,you cannot achieve this without Add-on. I can suggest you ScriptRunner or  JQL Search Extensions for Jira & reports 

 Here is the example how to get all sub tasks belongs to issue type story using  JQL Search Extensions for Jira & reports 

issue in subtaskOf("type= Story")

 

Hope this helps

2 votes
Answer accepted
Bill Sheboy
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.
March 20, 2025

Hi @Adrian Avalos 

What you describe is not possible with out-of-the-box features of JQL.

When you regularly need such types of queries, please investigate Atlassian Marketplace addons to JQL which support such nested querying.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events