Skip to content

Instantly share code, notes, and snippets.

@jechlin
Created May 3, 2019 08:35
Show Gist options
  • Save jechlin/e8ddfd5053791628a1527bd66c8ce5d0 to your computer and use it in GitHub Desktop.
Save jechlin/e8ddfd5053791628a1527bd66c8ce5d0 to your computer and use it in GitHub Desktop.
def subtasks = issue.subTaskObjects
if (issue.isSubTask() || !subtasks) {
return null
}
def resolved = subtasks.count { it.resolution }
"${resolved} / ${subtasks.size()}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment