Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is it possible to use any automation to close tickets after 3 days of being resolved?

Jamie July 6, 2020

The real challenge here is getting the automation to only work to business days. ie/ if a ticket is closed on Friday, i would not want it closed on Monday. 

 

Does anyone know how this might be possible? 

 

We are using automation for jira, and the project automation ? 

3 answers

1 accepted

5 votes
Answer accepted
Hernan Halabi - Elite IT Consulting Group
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.
July 6, 2020

Hello @Jamie you should first create an sla that uses a business days calendar. The SLA should breach after 3 days. 

Then using automation module you can setup a rule that the ticket is closed when that SLA is breached

Zoryana Bohutska _SaaSJet_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 7, 2020

Hi @Jamie 

You could achieve this with a combination of a custom SLA and an automation rule:

1. Settings -> SLAs -> New Metric.  Create a new SLA Metric that starts when the issue is resolved and stop when the issue is closed.  You'll need to add some JQL to search for resolved issues and set a goal of 3 days or '72h'. 

2. Settings -> Automation -> Add Rule -> Create a Custom Rule.

When this happens: SLA time remaining -> Select your new SLA from Step 1 -> Breached (this means 0 minutes left).

Then do this: Transition Issue -> Select transition to closed (whatever it is called in your workflow).

I hope it helps!

Like Tafara Mugwangi likes this
Jamie July 14, 2020

@Zoryana Bohutska _SaaSJet_  @Hernan Halabi - Elite IT Consulting Group 

 

Thank you both -  this seems to be working fine for us now. 

Like # people like this
5 votes
Gökçe Gürsel {Appfire}
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 6, 2020

Hi Jamie,

Time to SLA offers a novel solution for this.

Time to SLA's notifier mechanism allows users to fire an event at a specified time before/after the SLA breach.

The solution is:

1. Set up a business calendar and an SLA as you wish.

2. Set up a custom event just for this SLA

3. Set up a notifier for this SLA to fire an event 3 days after the breach like this:

notifier örnek.pngnotifier_2.png

4. Set up a listener (Script Runner) that catches the custom event fired from this notifier to transition the issue.

5. As a bonus, you can use the status that the issue transition to as an SLA end condition so that your SLAs won't go on forever.

Let me know if you have any questions.

Best,

Gökçe

4 votes
Harry Heathcote July 6, 2020

Hi Jamie,

Using the SLA's as explained above is probably the best way to do this. 

But if you do want to use Jira Automations then you will first need to set a reference point by either using the SLA's or using the Due Date Field that's on all tickets.

Capture.PNG

Then you run a second automation on a schedule checking for whether the due date has passed then transition the ticket to close.

Capture.PNG

I haven't tested this myself as the system we use doesn't use any of these things and we only have 1 closure status so this may need some little tweaks to get working.

Cheers,

Harry

Italo Qualisoni [e-Core]
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.
July 12, 2020

You can also use a JQL to check for issues in Resolved status that has not being modified for the last 7 days as the Trigger Scheduled. Therefore you don't need the additional rule to set the due date.

status = Resolved and updated < -7d

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events