Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,sheading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

runJobIn(silFile, args, interval)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Runs a job in a specified interval.

Runs a job in a specified interval.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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.

...

This example will create a job that will run the script "script.sil" after 30 minutes. (the script will run only once)

Code Block
languagejs
string[] args = {key, project}; //assume we're in the context of an issue
interval varInterval = "30m";
runJobIn("script.sil", args, varInterval);

In "script.sil" you can access the args using the next syntax:

Code Block
languagejs
string issueKey = argv[0];

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "schedule_routine" and space = currentSpace ( )
labelsarray_routines