How can I filter out only Tasks with sub-tasks ? Edited

I want to create a kanban board, which displays only issuetype = Task with sub-tasks under the parent task if there are any for the parent Task.

4 answers

0 votes
Warren Levy Community Champion Nov 23, 2017

Hi Mikk

You've almost answered your own question, without realising it. You would create a filter with

issuetype = Task

and save it. Then use that filter as the filter for your Kanban board

Yoy can use simple query  "project = XXX" and use Swimlanes based on "Stories". Swimlane will show up issues such that oneparent issue per swimlane and all its sub-tasks under it.

If you want to take more specific filter for subtasks, you need to specify the sub-task type in the filter like say 

project = XXX AND issueType in (Task, subtask)

@Suhas Patil it is not working for me.

  • I have created a Kanban Board
  • Added filter project = XX AND issuetype = Task ORDER BY Rank ASC
  • Base Swinlanes on Stories

But i can't see any sub-tasks, only parent issues, which type is Task.

Suhas Patil Community Champion Nov 24, 2017

Hi I edited my answer above. You need to also include the sub task type in ten filter. Then swim lanes based on Stories will work.

The Script Runner plugin has some subTask functions for JQL, if the plugin already there in your jira, just you can create a filter like 

project = XX AND issuetype = Task and issueFunction in hasSubtasks()

Hope it solves your problem.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,213 views 5 10
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