Filter on Sub-Tasks Related to a Task

Ryan Hinz I'm New Here Dec 19, 2017

Is there a way to use JQL to filter on Tasks and related sub-tasks?  I want to be able to include sub-tasks that are related to specific tasks.  Based on the queries I have looked at I am either including sub-tasks but not the main task OR the main task is included but I am missing sub-tasks in the filter.  This is mainly to feed into BigPicture resource planning tool, but I can't seem to get the query right.

1 answer

1 votes
Jack Brickey Community Champion Dec 19, 2017

There are ways of doing this but determining the best method for you requires more info. Such as, is this an occasional thing you want to do or frequent? How much effort are you willing to put into it? etc.

Let me provide my thoughts and see where it gets us but let me first state that the cleanest way is to use something like Scriptrunner's "issuefunction".

1) you could simply use a JQL like this - project = ABC and issuetype in (task, sub-task). Adding further qualifiers, e.g. status.

2) you could add a label to the tasks and sub-tasks resulting in a JQL like this - labels = stuff.

3) more obscure solution, but may work depending on your needs, is to create a kanban board with a single column and use the filter in #1. this will give you a view w/ sub-tasks grouped under the parent task.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,115 views 6 19
Read article

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