How do I create a filter of tasks with sub-tasks?

I am trying to create a report that only shows tasks which contain sub-tasks, then groups them. I was able to create a filter for tasks which are marked as either sub-tasks or component cases; here's what that query looks like:

project = SYS AND issuetype in (subTaskIssueTypes(), "Component Case", Sub-task) ORDER BY summary ASC, key DESC

There are two problems, though:

1. It does not include the 'parent' task.

2. The Summary field is displayed with the parent task but if I sort on Summary it ignores that, i.e., they are not grouped by parent

Is there a field which indicates that a task contains sub-tasks and/or component cases?
Is there a way to group the parent/child tasks?

Thank you for any assistance!

2 answers


There is a great plugin making it possible to filter out parents and their sub-tasks: Search Linked Issues for JIRA

It is not free though but well worth to try out in my opinion.

It will not group the issues the way you want in the issue navigator but if you display the filter in a Kanban board they will be grouped this way

Hope this helped!


// Svante

I just recall that the Script Runner plugin also has some subTask functions for JQL. They might also solve your issue. The Script Runner is free :-)


// Svante

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

149 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you