Email Script in a Notification to Redirect User to a HR Task

Michael94
Tera Contributor

Hi,

I am trying to write an email script to to takes the users to the HR task in the HR portal. The examples like below will take the user to the main HR case in portal instead of a HR task: https://community.servicenow.com/community?id=community_question&sys_id=46eff2f2dbcfa85066f1d9d96896...

I think the issue can be the 'HRM Task Parent' widget in portal. All the HR tasks get listed in this widget. So the email script only redirect the user to the list of HR tasks in that widget instead of the specific task.  

Any thoughts? Thanks in advance!

2 REPLIES 2

Community Alums
Not applicable

This should be fairly straight forward. Unless there is some portal page redirect configured. 

What does the URL of the HR Task look like in the portal? Does it still use the 'hrm_ticket_page'?

Here is an example of the URL of the HR Task in the portal:

www.abc.servicenow.com/ess?id=hrm_ticket_page&table=sn_hr_core_task&sys_id=94edd7261b45d110c3034224bc4bcbf3

ess is the portal's name and the sys_id is for the HR task.

The issue is the link displays a list of all HR tasks under a parent HR case assigned to the user in the 'HRM Task Parent' widget in portal instead of that specific HR task (sys_id=94edd7261b45d110c3034224bc4bcbf3). So the user has to find the HR task from the list and click on it in order to see the content.