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

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

How to setup a holiday in multiple SLA Calendars?

Rodrigo Atlassian Team Nov 13, 2018

Hi people!

 

In our Server Jira Service Desk we have many projects and, although they were created with shared configuration, Jira makes a new copy of the SLA Calendar for each new project.

I now have to manually setup the floating holidays for the next year and I didn't feel like manually editing dozens of calendars through the browser.

 

Did anyone solve this issue? Database inserts? Automated requests (JMeter)? Something?

 

Cheers

2 answers

1 accepted

Hi,

You can update holidays by using REST API:

/rest/workinghours/1/api/calendar - get all calendars to obtain their ids

/rest/workinghours/1/api/calendar/{id} - update the holiday part in JSON format.

There are get/put/delete operations, and will be easy to update the holidays part in all calendars.

Rodrigo Atlassian Team Nov 15, 2018

Thanks @Manuela Karaabova _Botron_! Though it seem's an undisclosed API, isn't it? Can't seem to find any reference of it... like how to post/put only the new holidays, if that's even possible - or you have to post the entire holiday list...

Hi Rodrigo, you can install REST API browser add-on and search for the api, this is non public API.

The format of the input data for this API is JSON, so if you want to add new holidays, you should post the old list plus the new holidays to that list, not only the new holidays. But the idea is you have fist GET operation in your client side, to get the calendar and then add the holidays and execute POST.

Like Rodrigo likes this

Hi Manuela,

I have been trying to do this but I am getting 403 as a response. Do we have to have any special authentication?

Never Mind I got it.
You can only use "PUT" and not "POST" as you are not actually creating a calendar you are just updating it with a new holiday. 
So basic! 
Thanks anyway!

Hi Rodrigo.
We have this feature as a part of our new app called Enhancer for Jira Service Desk. This is a commercial app, however, you can find there much more useful features. 
In case of any questions feel free to contact us at support@appsvio.com

Cheers,

Rodrigo Atlassian Team Feb 19, 2020

Thanks Tom!

Nice to know!

 

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Desk

The Complete Guide to Atlassian for ITSM

Hi Atlassian Community! This is Teresa from the Atlassian team. My colleague Paul Buffington @Buff and I are excited to share a brand new ITSM resource we’ve created – "The Complete Guide to At...

2,245 views 14 22
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