How to conditionally display Activity filter for the users

Rahamath
Tera Expert

We have a requirement  to  display Activity stream for only certain users  who meets the  certain conditions on the ticket.  Ex: Users can see all other ticket Activity stream only  certain tickets  can be allowed to specific  users to see  Activity stream. 

 

I wrote some UI  macro  for this , but I am not able to find the template name.  

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think your options are to either write/edit ui macros or use a client scripts that shows/hides based on some DOM manipulation. There is a risk associated with either of those methods in that the in any new release the activity formatter could be rewritten and your customization would break.

Why exactly do you need to hide the filter? In terms of the history being shown, it should honor ACLs.

Brad,

 

User has  write access  to the case  if should not see the Activity stream for some cases due to some security flag and restriction  who can view the activity flag .. 

Thanks

Rahamath 

 

 

Brad Tilton
ServiceNow Employee
ServiceNow Employee

But what is it in the activity stream that they shouldn't be able to access? Comments, work notes, field changes? The problem with editing the activity stream (other than that formatter changing from release to release) is that the content of the activity probably has different levels of access. Are you going to maintain this security for both the default form view and service portal? What if there is a custom ui? What if they navigate directly to something?

I would try to handle this with ACLs on the content itself rather than messing with the activity formatter.