Availability
This routine is available starting with Power Scripts for Jira 3.0.8.
Syntax
runJobInAndRepeat(silFile, args, interval)
Description
Runs a job every specified interval.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
silFile | string | Yes | The sil file name. |
args | array string | Yes | The list of the arguments of the job. |
interval | int | Yes | The interval |
Return type
none
The returned value has no meaning.
Example
string[] args = {key, project}; interval varInterval = "30m"; runJobInAndRepeat("script.sil", args, varInterval);
The example above creates a job that runs the script "script.sil" every 30 minutes. The job running will repeat every 30 minutes.
In "script.sil" you can access the args using the next syntax:
string issueKey = argv[0];
See also