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

Hi,

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!

Cheers,

// 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 :-)

Cheers,

// Svante

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,789 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot