Oncall schedule sync
Oncall schedule sync functionality is to add oncall engineers to the respective oncall groups based on a weekly schedule, provide them with access to a specific group of vistas and assign conversations based on their shifts.
Features
Adding Members through Time Events: A scheduled trigger is set every Monday at 9:00 PM IST, activating a synchronization function to retrieve designated on-call members for the current week from the Notion page. This process involves removing existing on-call member from their respective country group and replacing them with the newly fetched member. This automated procedure ensures up-to-date and accurate on-call assignments within their country group on a weekly basis.
Adding Members through Slash Command: To manually synchronize on-call schedules, users can type the command
/syncschedule
in the Snap-in discussions tab on the right. This command invokes the same function responsible for checking the current day, retrieving on-call members for the respective week, and updating the respective groups. Notably, even if the command is executed on a Monday, if the time is before 9:00 PM, the previous week's schedule is considered. The synchronization process involves removing existing member and adding new one.This manual command provides flexibility for real-time updates and adjustments to on-call schedules as needed.
How to use Oncall schedule sync
- Create a new integration in the Notion and add it as a connection in the
On-Call Schedule / Rotation
Notion page which contains the oncall database. - Provide the PAT of the Dev-0 Admin and the Notion secret key as connections to the snap-in.
- Also create a connection for sendgrid with the API key of Support mail.
- Provide the Database Id, Notifier email Id, and country-group-shift information in JSON format in the configurations.
- Also provide the ID's of the vistas that need to be shared with the Oncall engineers every week.
- Install the snap-in and type the command
/syncschedule
to view the members being added to the group.