---
title: "runJobInAndRepeat"
canonical: "https://support.appfire.com/space/PSJ/15489005/runJobInAndRepeat"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | runJobInAndRepeat(silFile, args, interval) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Runs a job every specified interval.

Runs a job every specified interval.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| scriptPath | String | Yes | The source of the script to be executed. |
| 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

This example creates a job that runs the script "script.sil" every 30 minutes. The job running will repeat every 30 minutes.

```
string[] args = {key, project};
interval varInterval = "30m";
runJobInAndRepeat("script.sil", args, varInterval);
```


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:


```
<ac:structured-macro ac:name="code" ac:schema-version="1"><ac:plain-text-body>string issueKey = argv[0];</ac:plain-text-body></ac:structured-macro>
```

## See also

> Macro (contentbylabel)