- 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 01:35 AM
Could you please share the screenshot, where you want to apply this condition, on the related list or list view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2019 02:45 AM
- 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:17 AM
Thanks.That works
May i know why do we use "Parent" instead of "Current"?