Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I query a sub-task for a specific issue type only?

Angela Boston Community Leader Dec 10, 2019

I would like to query the Issue Type and Sub-Tasks of that specific Issue Type only.  Is there a JQL for this?

3 answers

You need a plugin to do this either scriptrunner or  JQL Search Extensions for Jira & reports 



I have  JQL Search Extensions for Jira & reports  plugin and using it since long time., its available for both server and cloud


In your case 

This query will return all sub tasks of issue type epic , you can change the issue type as per your need.


issue in subTaskOf("issuetype=epic")


Angela Boston Community Leader Dec 12, 2019

Would I be able to pull in the Issue Type and the Sub Tasks of that Issue Type? 

Example, I have the Issue Type of Creative Request.  I want to pull the Creative Request tickets and the Sub-Tasks of those Creative Request tickets. 

@Angela Boston  why not just use:

issuetype="Creative Request" and issue in subTaskOf("issuetype='Creative Request'")
Angela Boston Community Leader Dec 30, 2019

I tried that and get this error message

Unable to find JQL function 'subTaskOf(issuetype='Creative Request')'.

Angela Boston Community Leader Dec 30, 2019

Can this be accomplished with ScriptRunner?

Hi Angela,

Thank you for your question.

I can confirm that the Enhanced Search for Jira Cloud plugin contains the subtasksOf() search function that you can use to query subtasks related to an issue.

The documentation page located here explains how this works in more detail and may be useful to help you to achieve your requirement.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.



not sure if I understood your question correctly. Are you looking for something like this 

=project = ABC AND issuetype in (Bug, Story, Task, Sub-task)

Angela Boston Community Leader Dec 12, 2019

I'm looking to return the Issue Type and Sub-Tasks of that Issue Type only. 


Example, the Issue Type is Creative Request.  I want to pull all Creative Requests and the Sub-Tasks of only the Creative Requests issue types.  

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events