I need to find issues that has no subtask.

Jurgen Sërbo June 21, 2017

How to find issues that are not in backlog and have no subtasks created ? 

2 answers

1 vote
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2017

Hi Jurgen,

with plain Jira, you can't query issues without subtasks. 

You can do that with the Scriptrunner plugin or the JQL Tricks Plugin. There may be other plugins also, but I know, that these two plugins have functions for querying issues with / without subtasks.

Jurgen Sërbo June 21, 2017

Hi Thomas,
I solved that by using this script : 
issuetype = Demand AND issueFunction not in hasSubtasks()

Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2017

Great! You didn't mention that you have the Scriptrunner plugin already. "I ssuefunction in / not in" is JQL from Scriptrunner.

 

Jurgen Sërbo June 22, 2017

My mistake. :/ 

0 votes
Sameer Bansal January 17, 2023

use 

issueLinkType = EMPTY
Sal April 18, 2023

This will only filter linked items not sub-tasks.

Suggest an answer

Log in or Sign up to answer