Hide internal work notes from itil.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:04 PM
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;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 08:55 PM
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;
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 11:50 PM
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.