PPM Schedules

John Lathrop1
Tera Contributor

SCENARIO

Our team of 6 individuals is all in different timezones.

 EST (UTC -4): 1

CST (UTC -5): 2

PST (UTC -7): 2

India (UTC +5.3): 2

 

The default schedule should handle the US team members but made a child schedule for the team members in India to track the additional holidays.

 

QUESTION

My daily hours for tracking are still the default 8 and not what I assumed would be 12.5 hours per day. I'm not sure if my thinking or my schedule is wrong. Thoughts?

1 ACCEPTED SOLUTION

Namita Mishra
ServiceNow Employee
ServiceNow Employee

Hi @John Lathrop1 ,

Thanks for posting the question in the community.

Child schedules are typically used to add the holiday schedule with the main schedule.

 

In your case, users are in different locations, and every location will have its own holidays.

It is better to create new schedule for India (assuming that for US, the OOTB schedule will work). In the new schedule, add a child schedule for the Indian holidays otherwise holidays will NOT be excluded from the schedule and as a result you will get the wrong capacity

 

Below screenshot shows the child schedule. Notice that type for each schedule entry is 'Excluded' because these days are excluded from the capacity calculation (since these are holidays).

 

Screenshot 2023-05-14 at 3.54.06 PM.png

Then add the selected users to the new schedule. 

 

Important Point: On updating the resource's schedule, it is important to use the 'Update Resource Capacity' from the user's record otherwise the schedule will still show the hours as per the initial schedule.

Now this becomes a cumbersome task to go to every user's record and click on 'Update Resource Capacity'. An easy way to achieve this is to bulk update using the CapacityGenerationAPI, steps below.

 

          System Definition -> Script Include – select CapacityGenerationAPI

          Basically CapacityGenerationAPI is the script include which has the methods to update the capacity for users, or users belonging to specific role or specific group or specific schedule. Just run the method using the background script as shown below

          System Definition -> Scripts - Background -> Background

        var CapacityGenerationAPI = new CapacityGenerationAPI();
CapacityGenerationAPI.updateCapacityAndAvailabilityForSchedules([‘e3140a22eb02010060bbafcef106fe95’], ‘2023-01-01’, ‘2023-12-31’);

 

Above example will update the capacity of all the pps_resource users from Jan 01, 2023 to Dec 31, 2023 whose schedule is as per the sys_id of the schedule provided as first parameter.

How To Get the sys_id of the schedule? ->  Open that schedule from left nav bar and on the header (or title bar of that schedule, right click and select copy sys_id

 

Additional Point: For US schedule as well, ensure that you have a child schedule for holidays.

 

Hope I was able to answer the query. If yes, please mark this as correct answer.

 

Thank You!

Namita Mishra

View solution in original post

1 REPLY 1

Namita Mishra
ServiceNow Employee
ServiceNow Employee

Hi @John Lathrop1 ,

Thanks for posting the question in the community.

Child schedules are typically used to add the holiday schedule with the main schedule.

 

In your case, users are in different locations, and every location will have its own holidays.

It is better to create new schedule for India (assuming that for US, the OOTB schedule will work). In the new schedule, add a child schedule for the Indian holidays otherwise holidays will NOT be excluded from the schedule and as a result you will get the wrong capacity

 

Below screenshot shows the child schedule. Notice that type for each schedule entry is 'Excluded' because these days are excluded from the capacity calculation (since these are holidays).

 

Screenshot 2023-05-14 at 3.54.06 PM.png

Then add the selected users to the new schedule. 

 

Important Point: On updating the resource's schedule, it is important to use the 'Update Resource Capacity' from the user's record otherwise the schedule will still show the hours as per the initial schedule.

Now this becomes a cumbersome task to go to every user's record and click on 'Update Resource Capacity'. An easy way to achieve this is to bulk update using the CapacityGenerationAPI, steps below.

 

          System Definition -> Script Include – select CapacityGenerationAPI

          Basically CapacityGenerationAPI is the script include which has the methods to update the capacity for users, or users belonging to specific role or specific group or specific schedule. Just run the method using the background script as shown below

          System Definition -> Scripts - Background -> Background

        var CapacityGenerationAPI = new CapacityGenerationAPI();
CapacityGenerationAPI.updateCapacityAndAvailabilityForSchedules([‘e3140a22eb02010060bbafcef106fe95’], ‘2023-01-01’, ‘2023-12-31’);

 

Above example will update the capacity of all the pps_resource users from Jan 01, 2023 to Dec 31, 2023 whose schedule is as per the sys_id of the schedule provided as first parameter.

How To Get the sys_id of the schedule? ->  Open that schedule from left nav bar and on the header (or title bar of that schedule, right click and select copy sys_id

 

Additional Point: For US schedule as well, ensure that you have a child schedule for holidays.

 

Hope I was able to answer the query. If yes, please mark this as correct answer.

 

Thank You!

Namita Mishra