Go through the following steps to set up an automated task:
- Navigate to Administration > System > Automation rules.
- Click on the Create rule button.
- Select the Scheduled trigger for the new automation rule.
- Enter how often the automation task should run. We want our task to run once every day, so enter 1.
- Enter the project = "Support Desk" and updated <= 7d JQL query so that the automation task will know which issues it should affect:
- Click on the Save button to save the trigger configuration.
- With the trigger configured, we now need to select an action. Since we want to close issues, we will select the New action option.
- Select the Transition issue action type.
- Select the destination status to transition affected issues when the automation task runs. We want to close issues, so select the Done status. If your workflow uses a different status, select that instead:
- If your workflow requires additional fields to be set, you can also set them here by selecting the fields from the Choose fields to set… drop-down menu.
- Click the Save button to save our changes.
- Enter a name for our new automation task, such as Close old issues, and click on the Turn it on button.
Your completed automation task should look something like the following:
It's time to look at how these steps work.