Where the find button definition of journey task on the service portal / employee center
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hello @saireddycon ,
This is the OOO widget ,
Widget Name:-HR Checklist
This script:
Prepares HR Task data for display in the Service Portal
Handles user actions coming from the widget (Skip / Complete / checklist toggle)
Calls OOB HR APIs to:
Skip a task
Mark a task as finished
Loads checklist items tied to the HR Task
This is why the Skip button works safely — it doesn’t directly update the record.
//Used by hr-click-to-continue
data.buttonText = gs.getMessage("Mark as complete");
data.hasItems = util.getChecklistItems(data.sys_id).length>0 || false;
if(input && input.action === 'toggleItem')
toggleItem(input.itemId);
data.user_id = gs.getUserID();
var hrtt = new hr_TaskTicket();
if (input && input.action === 'setTaskSkipped')
hrtt.setTaskSkipped(input.request);
if (input && input.action === 'setTaskFinished')
hrtt.setTaskFinished(input.request);
data.task = hrtt.getTasks(data.sys_id);
if(Object.keys(data.task).length==0)
return;
if(data.task && data.sys_id)
data.checklistItems = util.getChecklistItems(data.sys_id);
