Find all Stories with no Subtask?


I'm trying to create a search/report that lists all of the Open stories with no Subtasks associated with it. Is there a search/report function that I'm missing?


3 answers

0 vote
Jay Rogers Atlassian Team Nov 18, 2011

There's a plugin you might investigate that provides some subtask functionality, but unfortunately it looks like it is geared to finding issues *with* subtasks, rather than issues with no subtasks...

Actually, you can find issues without subtasks as well. Just use *NOT* ;)

issue not in hasSubtasks()

>> issue not in hasSubtasks()

That does not appear to work. I tried "issue not in hasSubtasks()" as well as "not (issue in hasSubtasks())" and I still get issues with subtasks. Weird thing is "issue not in hasSubtasks()" shows items that do have subtasks while "issue in hasSubtasks()" shows nothing. Not one single item. And I know I have some issues with subtasks because they show when I add "not" smile. JIRA version is 6.4.3 with JIRA Agile 6.7.2. I do not have the JQL Tricks plugin but hasSubtasks() has been native in JIRA for some time now. Is there something I am doing wrong?

hey Mike

ANy luck on this one? i need to find stories which has no test sub tasks in it



If you wish only to search for issues with no subtask, this is still doable with JQL. It will return a list of issues and no sub-task issues. For example:

project=Test AND NOT issuetype=Sub-task

But if you wish to search for issues that have no sub-task issues, I don't think this is doable in JIRA at the moment.

Is hasSubtasks() specific to any version?

It is available in a commercial plugin called JQL Tricks Plugin. See the link posted by Jay or

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

13,128 views 15 13
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