Forums

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

Autofill due date from created date plus 5 working days with ScriptRunner

Rika Mandasari
Contributor
September 22, 2020

Hi folks,


I'm not familiar with groovy, I have this condition to produce.

I want to autofill due date from created date plus 5 working days (exclude weekend and exclude public holiday which defined on SLA) after or when create ticket. 

is this possible? do you guys have any examples for me to start to learn groovy which meet this condition?

Note: I use Jira Service Desk Server and ScriptRunner

 

Many thanks

2 answers

1 vote
Nic Brough -Adaptavist-
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.
September 22, 2020
0 votes
Gökçe Gürsel {Appfire}
Atlassian Partner
September 27, 2020

Hi @Rika Mandasari ,

You can use SLA Dates feature of the Time to SLA to satisfy this requirement.

You can configure SLa Dates custom field to show the target date of an SLA and with an SLA configuration that suits your needs, this field show the created date plus 5 working dates - exclude weekend and exclude public holiday which defined on SLA.

Define the SLA as:

SLA Start: Date field: Jira field-Created

SLA Duration: 5 days

SLA End: Jira field: Resolved or the resolved status of your workflow

set-when-sla-starts-date-2.pngAfter this just configure SLA Dates custom fields to show the SLA target date and you're done.

SLa Dates.pngPlease let me know if you have further questions.

Cheers,

Gökçe

Please note that I'm one of the folks from Snapbytes so there might be other solutions out there and I might not be impartial.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events