Script to fetch current active on-call roster and associated on-call members based on the assignment group passed as a parameter.

Aman11
Giga Contributor

Hi Team,

Please help me to write a script that will return a list of the currently active on-call roster and associated on-call members based on the assignment group passed as a parameter.

Thanks in advance

1 ACCEPTED SOLUTION

Aman11
Giga Contributor
by using onCallRotation api I am able to achive the requirnment.
var groupSysId = '096fb59173062300e7af6238edf6a783';
var currentTime = new GlideDateTime();
var onCallRotation = new OnCallRotation();
var escalatees = onCallRotation. whoIsOnCall(groupSysId, "", "", currentTime);
gs.log(JSON.stringify(escalatees));

View solution in original post

5 REPLIES 5

sravya vemula
Tera Contributor

How can I get only user name ?