Info | ||
---|---|---|
| ||
This routine is available starting with Power Scripts™ for Jira 3.0.8. This routine is available for Jira server and cloud deployment options. |
Table plus | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
|
Description
Excerpt | ||
---|---|---|
| ||
Runs a job every specified interval. |
Runs a job every specified interval.
Parameters
Table plus | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
|
...
...
This param is available starting with version 4.8.0.10 of Power Scripts .
Return type
...
Return Type
None
The returned value has no meaning.
Example
This example creates a job that runs the script "script.sil" every 30 minutes. The job running will repeat every 30 minutes.
Code Block |
---|
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.
...
For the scriptPath parameter you can either give the relative path (as in the example above), or the absolute path:
C:/Program Files/Atlassian/Application Data/JIRA/silprograms/script.sil.
In "script.sil" you can access the args using the next syntax:
Code Block |
---|
...
string issueKey = argv[0];
...
title | No user provided |
---|
...
...
See also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|