This tutorial will guide you through writing Closures.The code snippets in the previous tutorial can be simplified to:
def count = 0 issue.getAvailableOptions("versions").each{ if(it.isReleased()){ count++ } } count
//Find whether a particular check box is selected or not issue.get("Scheduled tasks").any{ it.value == "Printing" }