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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

227 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you