Versions Compared

Key

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

Syntax

executeGroovyScript(<groovy>

...

Return type

string

Examples

note
Code Block
runnerLog(return executeGroovyScript("return 'Hello World!'"));

The issue variable is available within groovy scripts. The issue variable contains the reference to the issue, under which the script is being executed.

Code Block
runnerLog(return executeGroovyScript("return issue.getKey()"));

See also

Filter by label (Content by label)showLabelsfalseshowSpacefalsesorttitlecqllabel = "tempo-planner"You can also exectute code from a file stored in the SIL Manager.

Code Block
return executeGroovyScript(readFromTextFile("GroovyFiles/myGroovyFile.txt"));