How to cancel HR Task from ESC Portal ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 03:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 03:46 AM
Hi,
I don't think OOB there is any capability to cancel HR task from portal?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 03:59 AM
yes, OOTB there is no capability but how to achieve this requirement ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 04:38 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 05:47 AM
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.