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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.