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 [Riada] 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.

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
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
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