Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

This tutorial will guide you through writing Closures.

The code snippets in the previous tutorial can be simplified to:

Code Block
languagegroovy
linenumberstrue
issue.getAvailableOptions("versions").findAll{
  it.isReleased()
}.size()


Code Block
languagegroovy
linenumberstrue
//Find whether a particular check box is selected or not
issue.get("Scheduled tasks").any{
  it.value == "Printing"
}

...