- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 10:10 AM
Only current Assignment Groups should have access to update Assignment Group field on Incident form.
Please help! I tried business rule but able to select groups which the user is member of but unable to restrict group change if user is not member of group.
Suppose: Incident 123 is assigned to Network group only users from Network must be able to update assignment group of Incident. For all other users there must be an error message.
Thanks in advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 10:59 AM
Build you ACL condition as
Ok...You will have to write script in the ACL as below
answer = false;
if (current.assignment_group!='' && (gs.getuser().isMemberOf(current.assignment_group.toString()) || gs.getuser().isMemberOf('ServiceDesk') || gs.getuser().isMemberOf('Network')))
{
answer = true;
}
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 10:59 AM
Build you ACL condition as
Ok...You will have to write script in the ACL as below
answer = false;
if (current.assignment_group!='' && (gs.getuser().isMemberOf(current.assignment_group.toString()) || gs.getuser().isMemberOf('ServiceDesk') || gs.getuser().isMemberOf('Network')))
{
answer = true;
}
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 11:28 AM
thanks so much i was able to get it working with small modification. (Removed ".toString()" for
answer = false;
if (current.assignment_group!=' ' && (gs.getUser().isMemberOf(current.assignment_group) || gs.getUser().isMemberOf('Service Desk') || gs.getUser().isMemberOf('Network')))
{
answer = true;
}
thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 11:42 AM
To keep it editable if assignment group is blank, replace with below script
answer = false;
if (current.assignment_group==' ' || gs.getUser().isMemberOf(current.assignment_group) || gs.getUser().isMemberOf('Service Desk') || gs.getUser().isMemberOf('Network'))
{
answer = true;
}
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 11:33 AM
I have one last question assignment group field is grade out when creating a new incident? how can I prevent this?
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 11:39 AM
Replace with below code
answer = false;
if (current.assignment_group==' ' || gs.getUser().isMemberOf(current.assignment_group) || gs.getUser().isMemberOf('Service Desk') || gs.getUser().isMemberOf('Network'))
{
answer = true;
}
Please mark my response correct if it works
Please mark this response as correct or helpful if it assisted you with your question.