Forums

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

Closed resolved tickets after 3 days based on Calendar

Alvin
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 12, 2018

Hi Community,


Can someone help me out with this problem? We need to automatically closed a ticket that is resolved for 3 days based on the calendar, (excluding weekends and holidays) 

How can I do that with scriptrunner escalation services ? or can I do that with SLA? 


Thank you!

2 answers

1 accepted

1 vote
Answer accepted
Tarun Sapra
Community Champion
December 12, 2018

Hello @Alvin

In the JSD automation rule, as you see here

https://confluence.atlassian.com/servicedeskserver0314/automating-your-service-desk-954240116.html

When SLA time to close resolve issues is breached (after 3 days) then you can add the rule to close the issues.

Alvin
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 12, 2018

Hi @Tarun Sapra, How can I add Calendar that has holidays on it? or is it possible at all?

Tarun Sapra
Community Champion
December 13, 2018

Hello  @Alvin

You can configure Calendar while configuring SLAs

https://confluence.atlassian.com/servicedeskcloud/setting-up-slas-732528967.html

Alvin
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 13, 2018

Hi @Tarun Sapra,

I will try your suggestion. Thank you !

Alvin
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 17, 2018

Hi @Tarun Sapra

Can you help me out of here, I can do the SLA time and the Calendar,  but I need on the JSD automation rule is to closed the ticket after 3 days . I don't see close ticket after 3 days on automation.

1 vote
Payne
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 12, 2018

We do so with Escalation Services as follows:

JQL Query: project = SD and status = "Resolved" and ( (updated >= startOfWeek() AND updated <= -48h) OR updated <= -96h)

Interval: 0 0 * ? * MON-FRI

Action: Close

This closes after two days, excluding weekends. I'm not sure how one could account for holidays. But, this will hopefully get you doing down the right track.

Alvin
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 12, 2018

Hi @Payne

Is it possible at all to account holidays on this query? Thank you

Dhananjay Kale November 22, 2019

This worked for me. Thanks Payne.

felix.weber
Contributor
June 12, 2020

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