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

This widget could not be displayed.


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

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

202 views 1 3
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