Epics with open sub-tasks

Jeremy Upright April 3, 2019

In our environment we have defined a custom sub-task type called Commitment.  The Commitment is added as a sub-task to an Epic.  I need a JQL to see all Epics with more than one open Commitment.  We have the script runner plugin, so I am able to use the functions it offers, but thus far I have been unsuccessful if finding a way to get to this level of information.  Any thoughts or other information would be extremely helpful.

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 4, 2019

A starting point would be: 

issuefunction in parentsOf("issuetype = 'Commitment' and resolution is empty")

But this won't give you the "More than one" part of your requirement. This will include all Epics with one or more open subtasks.

If that requirement is critical, you will need to create a scripted field to query on:

The scripted field code would look like

FieldName: OpenCommitmentCount

issue.subTaskObjects.count{(!it.resolution && it.issueType.name == 'Commitment')}

Then your JQL would be simply:

OpenCommitmentCount > 1

Suggest an answer

Log in or Sign up to answer