Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble setting up Automation to transition from resolve to closed after x amount of days

Justin Miller August 25, 2021

I would like to create a new Automation rule that transitions from resolved to closed after 3 days. I have created the automation that transitions to close but it does it automatically.

 

automation.PNG

3 answers

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Champion
August 25, 2021

I suggest that you create an SLA that equates to time in resolved status then...

trigger - sla breached

condition - status = resolved

action - Transition to closed


The other approach is to leverage the resolution date. This of course assumes that you are setting the resolution field when an issue moves to resolved status.

trigger - scheduled to run daily

condition - status = resolved

condition - resolution date >= now()

action - Transition to closed

1 vote
Eli Solutions Team -Eli Solutions-
Atlassian Partner
August 25, 2021

@Justin Miller 

Use the following screenshot for assistance.  This rule runs at midnight everyday and checks the status of the issue and if it hasn't been updated in the last 5 days, it transitions all the tickets that meet the condition to Done.

autoclose ticket.png

Update the JQL as needed.  

Examples of how the updated jql is used:

  • Find issues that were last updated before 12th December 2010:
    updated < "2010/12/12"
  • Find issues that were last updated on or before 12th December 2010:
    updated < "2010/12/13"
  • Find all issues that were last updated before 2.00pm on 31st December 2010:
    updated < "2010/12/31 14:00"
  • Find issues that were last updated more than two weeks ago:
    updated < "-2w"
  • Find issues that were last updated on 15 January 2011:
    updated > "2011/01/15" and updated < "2011/01/16"
  • Find issues that were last updated in January 2011:
    updated > "20011/01/01" and updated < "2011/02/01"

If we get enough likes, we will post a video tutorial.

0 votes
Kian Stack Mumo Systems
Community Champion
August 25, 2021

@Justin Miller

I  would set up an SLA that begins when the issue transitions to the status "Resolved". Set the goal for 3  days. Then set up an automation rule that fires when the SLA is breached. Tell the automation rule to move the issue to Closed! 

Jack Brickey
Community Champion
August 25, 2021

yep!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events