Automatically approve after n days

Solution

  • Use a ScriptRunner Escalation Service to automatically approve them after n days

Step 1

Choose JIRA Admin and navigate to the ScriptRunner Admin function "built-in scripts"

OR type "." and then "built-in scripts" 

 

 

Step 2

Choose the Escalation Service link

 

 

 

Step 3

Choose the "New Service" link

Steps 4 - 8

Enter a description like "Auto Approve requests after 2 days"

Use the appropriate JQL to catch your old tickets like the below code block

status = "Awaiting Approval" 
and "My Approved Field" = "No" 
and updated <-2d

Type in the user to run this script as

Enter a valid cron expression, for example to run it every weekday at 10am use: "0 00 10 ? * MON-FRI"

Then choose the appropriate Action (this is likely to be a new Status of "Approved") and save your escalation