Time Sheet Portal - Incident Task not showing until time has been entered

Les1
Tera Guru

Hey all, observing something unexpected. 

Time Sheet portal, 

seems that for incident tasks, they aren't hitting the Time Sheet Portal unless  a time worked entry is saved for an individual. This seems different than some other Task types (Incident, Project, Change etc) where they show up in the Assigned Tasks list just based on being assigned.  below screenshot, i made an incident task assigned to the user, no time entered yet, but does not show in the Tasks column. Then i assigned an incident to the user, which showed up immediately (again, no time worked entry was saved- just assignment)    -- thanks!

find_real_file.png

1 ACCEPTED SOLUTION

Steven Slocum
Tera Guru

You likely need to modify the widget server scripts to add those tables not included in the ootb script. For a client we updated the following widgets:

 

  • Time Card Portal - Task Selector, server script - look for 'defaultTables' 
  • Time Card Portal Main Container, server script - look for $sp.getWidget('timecard-task-selector' ~line 32

View solution in original post

5 REPLIES 5

Steven Slocum
Tera Guru

You likely need to modify the widget server scripts to add those tables not included in the ootb script. For a client we updated the following widgets:

 

  • Time Card Portal - Task Selector, server script - look for 'defaultTables' 
  • Time Card Portal Main Container, server script - look for $sp.getWidget('timecard-task-selector' ~line 32

looks like you may be onto it, though its unfortunate that the widget itself needs updated to perform what would seem like ought to be already there.

Time Card Portal - Task Selector: var defaultTables = 'incident,problem,change_request,rm_story,rm_scrum_task,pm_project,pm_project_task,tm_test_plan,rm_defect,rm_enhancement';     {can see the missing Incident Task & even Change Task}

 

and as you noted on the Time Card Portal Main Container:    data.taskSelector = $sp.getWidget('timecard-task-selector', {
tables: 'incident,problem,change_request,rm_story,rm_scrum_task,pm_project,pm_project_task,tm_test_plan,rm_defect,rm_enhancement,sn_customerservice_case,wm_order,wm_task'
});   --- again missing incident task, change task, maybe others..

 

sounds like a feature request to me! as the documentation even for Orlando states: "Time Sheet Portal categorizes and displays all your assigned tasks in a single view for a given week"

--so evidently, not ALL ASSIGNED TASKS...    well at least i know what the issue is, i dont think we'll move for editing this OOB widget yet, probably just train them on the workaround of entering the time on the ticket first or can use the "search for unassigned ticket" that is on the timesheet portal, 

thank you Steve.

dshipley
Kilo Contributor

Can someone provide specific navigation to this script?  I'm unable to locate.  Thanks.

Can go into your Service Portal configuration (https://yourinstance.service-now.com/sp_config)

then Widget Editor, then can look into the widgets: Time Card Portal Main Container, Time Card Portal - Task Selector

 

alternatively can navigate in the platform view to simpy Service Portal/widgets and find the same in there to see them.

to edit will need to make copy of the widget first and edit the copy to preserve the originals.

hope that helps..