Skip to end of banner
Go to start of banner

executeGroovyScript

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Syntax

executeGroovyScript(<groovy>

Description

This routine will execute groovy scripts from within the SIL language.

Parameters

Parameter name

Type

Required

Description

groovy

string

Yes

The code to be executed

Return type

string

Examples

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.

return executeGroovyScript("return issue.getKey()");

You can also exectute code from a file stored in the SIL Manager.

return executeGroovyScript(readFromTextFile("GroovyFiles/myGroovyFile.txt"));
  • No labels