Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Where the find button definition of journey task on the service portal / employee center

saireddycon
Tera Expert

I would like to find the definition for the button 'Skip' on a HR Task for Journeys/LifeCycle Events on the service portal. I believe this is an OOB feature.

I need to add another button similar to it on the same page, so finding its source would be helpful.

Thank you so much

1 REPLY 1

PrajaktaG308421
Mega Guru

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);