Hide internal work notes from itil.

Bradley Bush
Mega Sage

Hi, i have internal work notes on sctasks and incidents. I would like to hide the read and write function of the internal notes from vendors with itil's. i do have a custom role assigned to the group that they are in. i have tried a few scripts in the acl for "work notes (internal only)". any help would be great, thank you.

var answer = false;
var userObj = gs.getUser();
if (userObj.isMemberOf(current.assignment_group='2e83e0d787b16510276adc273cbb35d6'))

{
answer = true;
}
else
{
answer = false;
}
2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi @Bradley Bush you could directly pass the group name here

var answer = false;
var userObj = gs.getUser();
if (userObj.isMemberOf("group Name"))

{
answer = true;
}
else
{
answer = false;
}

Regards
Harish

Bradley Bush
Mega Sage

hi Harish, I added the group to the script and the "work notes (internal only)" in open and closed tasks are visible to the person I impersonate from the group in the script.

hide wn.JPG