- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2019 01:25 AM
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
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2019 02:54 AM
Update this line if(gs.getUserID().isMemberOf(current.assignment_group))
with
if(gs.getUserID().isMemberOf(parent.assignment_group))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2019 03:22 AM
Related list is always a child, so if you create any record on Attached knowledge - Parent will be Incident