Script Jobs allow you to run your own code at regular intervals. Some examples are:

Find Script Jobs within ScriptRunner in the Administration area by clicking the Jobs tab. Alternatively, click Jobs from the left-hand menu.

The Jobs page displays a list of all configured jobs on the current Jira instance. Click Create Job to configure a custom scheduled job or escalation service.

script-jobs

Most Script Jobs take a cron expression to define the interval a job is run at. If you’re unfamiliar with cron expressions we recommend you use the Cron Maker resource to help you build your own.

Jobs require you to specify an application user the code will run as. Jira services have been migrated to Jobs; therefore, they now require an application user. Migrated services run as expected, however; when editing a service, you must specify an application user in the User field. For this reason, code that sets an authentication context to a particular user is now unnecessary; instead, configure the service to run as this user.

Have questions? Visit the Atlassian Community to connect, share, and learn with other Atlassian users and experts, including Adaptavist staff.

Ask a question about ScriptRunner for JIRA, Bitbucket Server, or Confluence.

Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.