How do I search for all tasks that contain subtasks?

Morgan_Thompson October 6, 2019

Status, resolution, type, etc. doesn't matter. I want to find every task in the system that has subtasks associated with it.

3 answers

1 vote
Muhammad Ramzan(Atlassian Certified Master)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2019

You can achieve this using a plugin like script runner or JQL Search Extensions for Jira & reports

 

I am using JQL Search Extensions for Jira & reports and following query will fulfill this need if you use the same plugin.

 

It will return all issues which at least have one sub task

issue in subtaskCountGreaterThan(1)
0 votes
fran garcia gomera
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 7, 2019

with Scriptrunner

issueFunction in hasSubtasks()

More info in https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_hassubtasks

0 votes
Edwin Ruiz October 6, 2019
issuetype in subtaskIssueTypes()

will display subtasks and the parent as well 

 

 

https://confluence.atlassian.com/jirasoftwareserver073/advanced-searching-functions-reference-861256240.html

Morgan_Thompson October 6, 2019

Thank you. Is there a way to only show the parents?

Like Joe Milner-Smith likes this

Suggest an answer

Log in or Sign up to answer