Forums

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

How to close issues automatically?

Rodrigo Marques December 20, 2018

We want close issues that were resolved three days ago, but we didn´t found how to configure this in Automation.

The rule is simple:
If issue are in status Resolved for three days
Then change to status Closed
And send a comment with text "xxx"

Its possible an automation for this?

1 answer

1 accepted

0 votes
Answer accepted
Aswin Achuthan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 20, 2018

If you are using Automation for Jira, the best way to trigger this job is using "Scheduled" option.

1) Create a automation rule to run daily at specific time(eg: 7:15 AM)

0 15 7 ? * *

2) Add condition to filter issues based on updated time 

updated < -3d 

3) In Action section, transition these tickets to Closed status

Make sure your plugin has permission to do this transition.

Rodrigo Marques December 21, 2018

Hi Aswin,

Ok, I understood how to do this.

Is there a way to config this 3 days to be 3 work days (without count weekend)?

Rodrigo Marques December 28, 2018

@Aswin Achuthan can you confirm this point of work days?

Aswin Achuthan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2018

@Rodrigo Marques that is not possible in Automation for Jira (AFAIK at least)
one workaround that I can think of is creating separate automation for Monday, Tuesday, and Wednesday so that it can check for 5d, 6d and 7d respectively. So you might need to create 4 automation rule

Rodrigo Marques January 2, 2019

OK @Aswin Achuthan, thanks for your help!

felix.weber
Contributor
June 12, 2020

@Rodrigo Marques 

not 100% sure at least avoiding the weekends the default SD automation should help as it should be only "business days" - however I am not sure if Saturday will be counted as business days or how it is calculated e.g. if you are working in Israel

https://support.atlassian.com/jira-service-desk-cloud/docs/auto-close-incidents-after-they-are-resolved/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events