Warning |
---|
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here ! |
Info | ||
---|---|---|
| ||
This routine is available starting with katl-commons SIL Engine™ 1.0. |
Syntax
call(sysname, silprogrampath, arguments)
Description
Excerpt |
---|
Executes SIL SIL™ script on the current host or different host. |
...
You can use return to return values back to the caller. A string array only. If the call is local, current issue is available. If the call is a remote call, the current context is lost as issue variables will have no meaning.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
sysname | string | yes | System name. The local system, Jira server machine, is identified by an empty string "" or by the string "local". For remote systems, it should contain the system name, as configured in the configuration page. |
silprogrampath | string | yes | Full path to the program being run. Absolute path, for instance "/opt/jira/home/silprograms/myprogram.sil" or "C:/Atlassian/Jira/Home/silprograms/myprogram.sil". |
arguments | string [] | yes | The arguments, as an array of strings. |
Returns
string []
The return from the script, as an array of strings. Values that are returned using the return keyword.
...
Note |
---|
For remote calls, you need additional steps (see the configuration manual). Windows: We recommend you to use forward slashes "/" in paths instead of "\" since it will simplify your life. |
Resolution of the remote system goes as following, as you may define the same name for a remote system in multiple places:
- If the name of the system is empty ('') or the string 'local' it will call a local script.
- Find the name of the system as defined by REST. If it is defined, it calls the REST remote system.
- If it is not defined, fallback on SOAP.
- If it is still not defined, error will appear.
...
Info |
---|
To configure the Remote systems see the configuration page. |
...