Get on-call member from the on-call calendar
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 10:46 AM
Hi,
We have an on-call schedule for a group "DB". we'd like to get the current on-call person for the group "DB" via script for a given date. How would we achieve this?
Thanks
Divya
Labels:
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 09:26 PM
Below is a sample script you can run to get who is currently on-call for a given group id:
var onCall = new OnCallRotation();
gs.debug("Who: " + onCall.who("287ebd7da9fe198100f92cc8d1d2154e"));
gs.debug("Primary User: " + onCall.getPrimaryUser() + "; " + onCall.getPrimaryUserName());