How do you filter issues to find stories without sub-tasks

Roy Martin August 2, 2012

I would like to create an issue filter that shows stories in the current sprint that do not have any sub-tasks assigned.

Something like this...
fixVersion = earliestUnreleasedVersion("DSI") and type = Story and ...???

Where ??? ~= childCount < 1 or children = YES

3 answers

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
August 2, 2012

JQL Tricks Plugin, a commercial one, has a hasSubtasks method that you can use for this.

1 vote
Simon Brugger August 14, 2012

you can also use the Craftforge JQL Functions Plugin to detect subtasks of a story:

https://marketplace.atlassian.com/plugins/org.craftforge.jira.craftforge-jql-functions-plugin/version/20120623

and the best of all, it's Free :)

Michelle Hall June 9, 2015

Just as an update: This Plugin is no longer free. It is now a paid app.

0 votes
Amit Namdhari May 23, 2018

Solution without a plugin.

Use below query as a Quick Filter from the Board Configuration.

issueFunction not in hasSubtasks() AND issuetype != Sub-task

It will sort out every story which has No or Zero sub-tasks.

Joe Harmon September 7, 2018

Doesn't work.  Error message received is that issueFunction does not exist

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2019

Issuefunction is associated with Scriptrunner plugin

Suggest an answer

Log in or Sign up to answer