Assigning Holidays Based on User's Country in FPTR

Hi,

We are planning to use FPTR to manage multiple projects, with each project assigned to different subcontractors. Some of these subcontractors are based overseas, so we need to assign holidays based on the user’s country.

The method I have in mind involves using an event daemon to assign country tags to user groups. The event daemon would then detect this and use the Shotgun.work_schedule_update(date, working, description=None, project=None, user=None, recalculate_field=None) API to manually input the holidays.

However, this method has a few limitations:

  1. I’m unsure how to handle already assigned work schedules when a user is reassigned.
  2. I need to figure out how to keep the holiday data up-to-date and synchronized.

Here are my specific questions:

  1. Is there a better method than using an event daemon to detect country tags and automatically assign holidays?
  2. How can I efficiently handle work schedules that are already assigned when reassigning users?
  3. Do you have any advice or examples on maintaining and automatically updating holiday data?

I would greatly appreciate any advice or experiences you can share.

Thank you.

1 Like

Perhaps a scheduled script would work? We do something similar, though our employees are all in one country (typically). Your script goes through and catches all users with that tag, and then works on populating the data as required, on a schedule.

You can also scope it out so the scripts works to ensure that holidays up to a certain date are populated, so that you are always ahead of the game.

We don’t use the work schedule though, and actually populate all our holidays as Vacation bookings.

Could be done as a Chron job, but we also have a number of cleanup/catchup scripts that work well with just Windows tsk scheduler.

1 Like