Scheduled Jobs
Migrating from ScriptRunner for Jira Server/DC to Cloud? Check out our ScriptRunner Migration to Cloud section. |
Before you start
Visit ScriptRunner HQ to see example scripts. | |
View our training for Scheduled Jobs. |
What are Scheduled Jobs?
Scheduled Jobs allow you to automate the running of scripts at regular intervals saving your administrators time, and reducing the risk of human error. You can specify when, and how often, a job should run.
How to use Scheduled Jobs
You may want to use a Scheduled Job to:
- Create a work item once per month.
- Email a report to users on a schedule.
- Delete inactive users on a monthly basis.
- Change the status of a work item depending on the time it has been open.
- Automatically escalate a work item based on the elapsed time using Escalation Services.
Say, I have a team of consultants who need to fill out expenses at the end of every month. I can create a Scheduled Job to automatically create a task for each user at the end of every month to remind them to complete their expenses.
As a Jira administrator, it's key to keep my instance healthy and reduce costs by removing inactive users. I can set up a job to run a script that deletes inactive users on a monthly basis.
Create a Scheduled Job
You can use Scheduled Jobs to ensure code runs either at a specified time of day/week/month, or on an interval, to perform an automated task in your Jira instance.
Follow the steps below to use this feature: