Assignment Group access to work notes and additional comments

Insider
Giga Guru

The assigned group working on the cases must have access to work notes and additional comments on the case.

1 ACCEPTED SOLUTION

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

Regards
Harish

View solution in original post

29 REPLIES 29

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;

 

You can add like this to satisfy both Conditions.

if (legalOperationsSecurity.checkUserHasRequestWriteAccess() && gs.getUser().isMemberOf(current.assignment_group))
answer = true;

Regards
Harish

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?

Hi i think the User B is not satisfying this condition legalOperationsSecurity.checkUserHasRequestWriteAccess(). Are both users belong to same group and roles?

Regards
Harish

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;