93 views

Symptoms


Invalid tasks displaying as options in worker portal (tcp)

 

Release


Kingston

 

Cause


Modified (Time Card Portal - Task Selector) widget

 

Resolution


The (Time Card Portal - Task Selector) widget below is responsible for displaying tasks via the TCP:
https://<Instance-Name>.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=9c5558a493532200ea933007f67ffb37
 
 
//Get Unassigned Tasks for which timecard has been logged
var unassignedTaskIds = [];
var timecards = new GlideAggregate('time_card');
timecards.addQuery('time_sheet', timesheetId);
timecards.addEncodedQuery('taskISNOTEMPTY');
timecards.addQuery('task', 'NOT IN', data.ids);
timecards.query();
while(timecards.next())
unassignedTaskIds.push(timecards.getValue('task'));
 
The logic implemented above is querying for unassigned tasks for which timecard has been logged.
 
 

Please verify that the (Task Selector) widget above has been updated to the latest version available.

Article Information

Last Updated:2018-06-30 09:26:37
Published:2018-06-30