Disable follow on incident

ShubhiGarhwal
Tera Contributor

ShubhiGarhwal_0-1707330661156.pngShubhiGarhwal_1-1707330693200.png

Hello everyone Is this possible that Follow button can be disable for user who have itil role?

3 REPLIES 3

swathisarang98
Giga Sage
Giga Sage

Hi @ShubhiGarhwal,

 

Based on role you can not directly show/hide "Follow" button so what you can do is you can navigate to sys_dictionary table,  there search for incident table and type is collection, inside related list attribute set the value of "live feed " to false as shown in the below screen shot, so the follow button will completely disappear from Incident page .

 

Dictionary entries.PNG     live feed.PNG

after disabling the Follow button in incident table, you can Clone the OOTB ui action  and set table as incident  and add the condition "!gs.getUser().hasRole('itil')

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang

Hi @swathisarang98 its working but There is no Ui action for this how can I diasable for itil user.

Hi @ShubhiGarhwal ,

 

Once you have disabled the Live feed from Incident table you can create a new Follow button buy cloning the existing one and then select table as Incident and in condition give the value as !gs.getUser().hasRole('itil') so that your button will only be visible for non itil users 

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang