Omit Edit Condition Query?

jaisankar
Mega Contributor

Hi All,

My Omit Edit Condition Script is not Working as expected?

The Edit Condition Should Omit if the current logged in user is part of the incident assignment group.

Below is the Script!

var answer;
if(gs.getUserID().isMemberOf(current.assignment_group))
{
answer=false;

}
else{
answer=true;

}
answer;

It is not working. It removed the Edit Option for the incident assigned to myself and i'm part of that assignment group!

Can anyone correct me if i'm wrong?

Thanks in Advance!

Prem

1 ACCEPTED SOLUTION

Update this line if(gs.getUserID().isMemberOf(current.assignment_group))

with

if(gs.getUserID().isMemberOf(parent.assignment_group))

View solution in original post

5 REPLIES 5

Related list is always a child, so if you create any record on Attached knowledge - Parent will be Incident