Hide hr service name and opened for user name in HR Tasks in Service Portal

Bhavani3
Tera Contributor

how to hide the HR Service name and Opened for User name in HR Task of only for particular  lifecycle event HR service only

Bhavani3_0-1721060560521.png

As above attachment yellow high lightened one need to hide if that HR Task assigned to user impersonated

5 REPLIES 5

AnirudhKumar
Mega Sage
Mega Sage

Hey Bhavani,

 

It is not possible to hide it conditionally for one specific HR Service.

To hide it for all HR Services, we need to go to To-Dos Configuration -> Open the records on HR task table -> Go to Detail row tab -> Clear the field Parent fields

 

To hide it for specific HR Service, it needs widget level script update... messy stuff. never recommended

abirakundu23
Mega Sage

Hi @Bhavani3,

If you want to hide form Portal for specific service need to change in Widget level which is ideally not best practice & not recommended.

Please mark helpful & accept answer if it's worthy for you.

Wessel van Enk
Tera Guru
Tera Guru

Hello,

This is an out-of-the-box widget, so to change this, you need to adjust the code of the widget. 
This is a customization, so please be aware of that. 

 

If you want to apply this only for one HR Service, you can make an If/Else statement in the widget, saying if the HR Service = A, then this information is not visible. In the Else statement you can keep the existing code, so the behavior for the other services remains the same.  

 

ServiceNow recently changed the approach on customizing widgets, normally it was a best practice to copy the widget and make an own version, but now they actually allow you to change the OOB code of the widget. But again, this might cost some additional time when you will upgrade to the next release 😉 

Bhavani3
Tera Contributor

Hi Wessel

 

Thank you for your approach about this. 

In client instance for specific Lifecycle event HR service that hr service name and opened user name is hided if impersonate user checked to do list .Actually requirement is to need to show the hr service name and opened for user name to those lifecycle events hr service.

 

Is there any ACL is hiding? or only through widget scripting that hided?

 

Even I have checked ACL,business rule but not getting from where that names are hiding .