Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Prevent Demands from Showing in Time Sheet Portal

shrutijibhekar
Tera Contributor

Hello @all ,

Whenever I create a Resource Assignment from the Demand form related list, the corresponding demand starts appearing in the Time Sheet Portal under the “All Tasks” tab.

My requirement is that demands should never appear in the Time Sheet Portal, even if a resource assignment is created for them.

I have checked the Time Sheet Portal configuration, and there does not appear to be a direct table such as Resource or Demand available for filtering.

Has anyone encountered a similar requirement or implemented a solution for this scenario?

Any guidance or suggestions would be greatly appreciated.



shrutijibhekar_0-1771481026698.png

{
"tm_grid_options": {
"displayValue": "Time card grid options",
"value": {
"pageSize": 20,
      "restrictedStatesForDuplicateMerge" : ['approved', 'processed'],
"header_fields": [{
"name": "task.short_description",
"width_in_percent": 16
},
{
"name": "project_time_category",
"width_in_percent": 20
}
]
}
},
"task_selector_options": {
"displayValue": "Time Sheet Portal Task Selector Options, set maxVisibleTask, maxVisibleGroupTasks to positive integer to limit task selector cards.",
"value": {
"tables": "rm_story,pm_project",
"maxVisibleTasks": -1,
"maxVisibleGroupTasks": -1,
      "disableTaskSelectorSync": false,
      "showDuplicateCards": false
}
}
}



1 ACCEPTED SOLUTION

alexankaras
ServiceNow Employee

The Time Sheet portal was designed to support Resource Plan - based allocations. Another approach you should be looking would be, not showing demands/projects/tasks with resource assignments in the Time Sheet portal unless it is approved.

On that regard, we have a community article on how to work-around this:

https://www.servicenow.com/community/spm-articles/time-sheet-portal-with-resource-assignments/ta-p/3...

View solution in original post

2 REPLIES 2

alexankaras
ServiceNow Employee

The Time Sheet portal was designed to support Resource Plan - based allocations. Another approach you should be looking would be, not showing demands/projects/tasks with resource assignments in the Time Sheet portal unless it is approved.

On that regard, we have a community article on how to work-around this:

https://www.servicenow.com/community/spm-articles/time-sheet-portal-with-resource-assignments/ta-p/3...

Hello @alexankaras,

 

I updated the query by using the following instead of approved:


'allocations.addQuery('resource_assignment.resource_status', 'DO_NOT_SHOW');'

 

This change worked perfectly for me 👍

 

Thank you so much for your help and guidance!