The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Luis Ataide
ServiceNow Employee
ServiceNow Employee

SAFE HARBOR / DISCLAIMER: This article describes a proposed solution to support this use case. Please note that ServiceNow may offer an out-of-the-box solution for the issue described below in the future.

The proposed solution requires customization; as such, there is no liability for ServiceNow to provide support, apply changes, fix defects and review impact during future upgrades.

Customers are responsible for evaluating and deciding whether to implement this solution.

 

What problem does this solve?

The Timesheet portal is not adapted to work natively with the resource assignment functionality at the moment. 

 

This guide will walk you through customization to enable a workaround to align Timesheet portal to the resource assignment functionality.

 

To streamline the efforts for this, we have created and supplied XML records to be imported, while also detailing those configuration records in this document.

 

Prerequisites

  • Organization is using only Resource Assignments 
  • Resource Management Workspace version 5.1.1 (or later)

 

1. Hide Resource Plan column

LuisAtaide_2-1751907285702.png

 

1.1. Open the portal widget 'Time Card Grid'

https://<INSTANCE>/sp_widget.do?sys_id=191df3b393332200ea933007f67ffbab 

 

1.2. Comment out the 2 lines highlighted below in the 'Server script' section

 

LuisAtaide_3-1751907695134.png

 

Example XML provided

  • sp_widget_Time_Card_Grid

 

2. Add Resource Assignment column

LuisAtaide_0-1751906376677.png

 

2.1. Open the portal page instance 'Time Card Portal Container'

https://<INSTANCENAME>/sp_instance.do?sys_id=1d7b842493532200ea933007f67ffb22

 

2.2. Add the resource assignment object in the Header fields object, as the example highlighted below, in the 'Additional options, JSON format' section

 

LuisAtaide_1-1751906767050.png

 

Example XML provided

  • sp_instance_1_Time_Card_Portal_Container

 

3. Project and Project Tasks cards only from Approved Resource Assignments

The Time sheet cards for project and project tasks are filtered based on the Resource Plan state = Allocated. Using Resource Assignments require the Time sheet cards to be filtered based on Resource Assignment status = Approved

LuisAtaide_0-1751908335733.png

 

3.1. Open the portal widget 'Time Card Portal - Task Selector'

https://<INSTANCENAME>/now/nav/ui/classic/params/target/sp_widget.do%3Fsys_id%3D9c5558a493532200ea933007f67ffb37

 

3.2. Add filter for Resource Plan status = Approved, as the example highlighted below, in the 'Server script' section

LuisAtaide_1-1751908966429.png

 

Example XML provided

  • sp_widget_Time_Card_Portal_Task_Selector

 

3.3. Define the Resource Assignments statuses excluded from resource availability

Make sure to define the Resource assignments statuses to be excluded from the resource availability calculations within Project Administration > Settings > Properties - Resource.

More details: Exclude resource assignments in specific states from capacity calculation

 

This also impacts the automatic resource assignment that occurs when a Project or Project Task time card is added to the time sheet, and time card submission is cancelled if the Resource Assignment holds any of the excluded statuses.

 

4. Prevent time cards from being submitted for non-approved Resource Assignments

 

4.1. Create Business Rule to clear Resource Plan field when Resource Assignment is not identified

If a user adds a Project or Project Task to the timesheet using the Add unassigned tasks to Time Sheet option, the out-of-the-box rules attempt to automatically populate the Resource Plan and Resource Assignment fields.

 

LuisAtaide_0-1752054888884.png


This can result in a time card where the Resource Plan is automatically filled, but the Resource Assignment remains empty. In such cases, actuals would be generated against a non-approved Resource Assignment.

 

This occurs because all Resource Plans are in the Allocated state (when using Resource Assignment), but only Resource Assignments that are not in one of the excluded statuses (as described in item 3.3) are considered valid.

 

To prevent this situation, the business rule clears the Resource Plan field if the Resource Assignment field is also empty.

 

 

 

AlexKaras_3-1752077872903.png

LuisAtaide_2-1752055024444.png

 

 

Example XML provided

  • sys_script_Remove_res_plan_if_assignment_is_empty

 

4.2 Create Business Rule to abort submission of Time cards when the Resource Assignment is not Approved

 

This business rule ensures that users cannot submit a time card linked to a non-approved Resource Assignment.
This scenario can occur if a user creates a time card linked to an approved Resource Assignment but does not submit it right away.

 

If the Resource Assignment status changes from Approved to another state before the time card is submitted, the business rule will abort the submission.

 

AlexKaras_4-1752077926535.png

LuisAtaide_1-1752059082181.png

 

Example XML provided

  • sys_script_Abort_if_assignment_not_approved_status

 

Make sure both Business Rules have high order to not conflict with out-of-the-box business rules. 

LuisAtaide_0-1752071371469.png

 

Refer to the Quick Start Guide for Resource Management for more information about the Resource Management solution.

Comments
Alex2506
Tera Expert

Thanks for this @Luis Ataide.

Regarding #3. Is this something that ServiceNow are actively working on? I've seen a lot of customers that are having this issue and seems to make sense that only approved Resource Assignments would appear on Time Sheets. I will implement some customization in the meantime but it would be good to understand if this is being look at.

 

Cheers! 

Luis Ataide
ServiceNow Employee
ServiceNow Employee

Hi @Alex2506 ,

 

It's on the product roadmap to review the Timesheet portal and its behaviour with Resource Assignment, but there is no timeline defined for it yet.

 

Best regards.

David_Leake
Tera Expert

 Just to confirm, this is considered a customization, right? If there is an update made to this widget by ServiceNow in the future to better incorporate resource assignments this widget would not apply that update because the file had been customized. I just want to make sure I have all the information before making these changes. 

James Rivera1
Tera Contributor

This worked great for adding the resource assignment entry to the timesheet, however, when the timesheet is approved and an entry is added as an expense line to the project the amount is $0.  Is there a way to have this calculated based on the resource rate?

Luis Ataide
ServiceNow Employee
ServiceNow Employee

Hi @David_Leake,

 

Yes, your understanding is correct. The solution described requires customizations, and you may review those in future releases.

Luis Ataide
ServiceNow Employee
ServiceNow Employee

Hi @James Rivera1,

 

I recommend reviewing the recorded webinar SPM Resource Management Workspace: A new approach for assigning resources to outcomes (Session 1), which has an overview of how resource costs are calculated. 

LuisAtaide_0-1755523748829.png

 

And the rate model documentation: https://www.servicenow.com/docs/bundle/zurich-it-business-management/page/product/project-portfolio-...

Version history
Last update:
‎07-11-2025 02:02 AM
Updated by: