Is there any way to restrict the Activities inside incident

Alon Grod
Tera Expert

Hi,

 

I have the field u_operational_comments of type Journal. Is there any way to restrict the Activities so that only users from the same group will be able to see each other comments in the activities when using u_operational_comments to type noes.

For example, only users that are in the same group like Alon Grod (in this example) will be able to see the comment 'test123'.

Screen Shot 2023-02-02 at 16.54.17.png

4 REPLIES 4

Mike_R
Kilo Patron

You will need to create a custom ACL(s) and use a script to enforce that logic.

 

@Mike_R hi can you please be more specific

Here's an example. Change the "Additional comments" field to your field, and customize the script as needed.

Mike_R_0-1675351731702.png

 

if (gs.getUser().isMemberOf(current.assignment_group)) {
    answer = true;
} else {
    answer = false;
}

 

 

@Mike_R  but it will hide the entire field and that is not the requirement. It should hide the comments inside the Activities if the users are not from the same group.