- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 12:42 AM
The assigned group working on the cases must have access to work notes and additional comments on the case.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2022 01:57 AM
HI Shafi ensure there is only one write ACL on the table for worknotes.
script:
if(gs.getUser().isMemberOf(current.assignment_group.sys_id))
answer = true;
Refer attached screenshot for example
1. members of group can edit and see worknotes
2. ITIL user Non member of group cannot see worknotes
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 12:47 AM
Hello Harish,
I already have this script on ACL, how can i include your script in here. Can you help me please.
var legalOperationsSecurity = new LegalOperationsSecurity(current, gs.getUserID());
if (legalOperationsSecurity.checkUserHasRequestWriteAccess())
answer = true;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 12:57 AM
You can add like this to satisfy both Conditions.
if (legalOperationsSecurity.checkUserHasRequestWriteAccess() && gs.getUser().isMemberOf(current.assignment_group))
answer = true;
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 01:18 AM
Hi harish,
This is working until the assigned to field is empty.
When i assigned the case to Group G its working.
When i assign it to user A then User B is not able to see the Worknotes. Why is this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 01:28 AM
Hi i think the User B is not satisfying this condition legalOperationsSecurity.checkUserHasRequestWriteAccess(). Are both users belong to same group and roles?
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 02:08 AM
I changed the condition to OR instead of AND
Yes they belong to same group
They belong to same group which case is assigned to
if (legalOperationsSecurity.checkUserHasRequestWriteAccess() || gs.getUser().isMemberOf(current.assignment_group))
answer = true;