How to cancel HR Task from ESC Portal ?

Harsh Sanghvi
Kilo Explorer

Hi,

I have created one onboarding process. during this process one HR Case getting created, it having some HR Task inside it. How can I cancel that HR Task individually from esc portal itself ?

If I cancel that HR Task from esc portal then HR Task state should be change to cancelled in backend.  

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I don't think OOB there is any capability to cancel HR task from portal?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

yes, OOTB there is no capability but how to achieve this requirement ? 

Hi,

you might have to add custom logic to that page by creating new widget and adding to that portal page

sharing some links for help; try to enhance as per your need

Create Reopen Incident Widget which requires comments for Service Portal

Reopen Incident Button on Service Portal from from Email Notification

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

keithl22
ServiceNow Employee
ServiceNow Employee

Hi, why do you need to cancel the task? As part of the Activity setup you can make tasks optional. Any optional tasks not completed when the case is closed will be marked closed incomplete. If you really needed them in a cancelled state you could write a business rule or something else to change the state when the case is closed. 

 

As Ankur mentioned, there is not an OOTB way to achieve this, so you would need to create a custom version of the OOTB widget that renders the tasks in the portal (I believe it would be hrm-todos-line-item widget). I generally advise against modifying these because they are so fundamental to the way the HR Product works and they get modified a lot with each release. You'll have to reconcile the changes very frequently.