Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jorgeuriarte/5704647 to your computer and use it in GitHub Desktop.
Save jorgeuriarte/5704647 to your computer and use it in GitHub Desktop.
def openSprints = boardData.get("openSprints") as List<Map>
openSprints.findAll { it.name.contains(sprintMarkerName).xor(negate) }.each { sprint ->
sprint.get("issues")*.id.each {
issueIds.add(it.toString())
def issue = issueManager.getIssueObject(it)
def subTasks = issue?.subTaskObjects
if (subTasks) {
issueIds.addAll(subTasks.collect{it.id.toString()})
}
}
}
return new ConstantScoreQuery(new IssueIdFilter(issueIds))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment