View gist:052b7a6491c1e592b7be062828fb0d1d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script creates a trigger that runs every 24 hours that will sync your team calendar from the vacation calendar | |
// with only events for your team members. This is a great way to have a simple team calendar to share with everyone | |
// and integrate with slack for more visibility into time off | |
// Instructions: | |
// 1. Clone this script | |
// 2. Create a new team calendar in google calendar, go to calendar settings, and copy the calendar ID | |
// 2. Change the value of TEAM_CALENDAR_ID to the ID from step 2 | |
// 3. Update the line 19 variable, TEAM_MEMBERS. to be a list of your team members as they are entered in the vacation calendar | |
// 4. Click Save |