Skip to end of banner
Go to start of banner

runJobByCron

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 6 Next »

Availability

This routine is available starting with Power Scripts™ for Jira 3.0.8.

Syntax

runJobByCron(silFile, args, cronExpr)

Description

Runs the job according to the specified cron schedule.

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.
cronExprstring

Yes

The cron expression

Note

You can find more details about using the cron expression according to the used API at  www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger

Return type

none

The returned value has no meaning.

Example

runJobByCron("script.sil", {project, key}, "0 0 12 * * ?");

The SIL script above will create a job that will run the script "script.sil" at 12pm (noon) every day.


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

string issueKey = argv[1];


See also


  • No labels