- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 01:58 AM
I have a requirement like all software assignment group incidents have to assign to network group only by the network group members.How to achieve this?
Regards,
Gokulraj S
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 04:38 AM
It hasn't updated the record, you can another line to return it to the previous value.
if(!gs.getUser().isMemberOf('Network') && current.assignment_group.getDisplayValue() == 'Network'){
gs.addErrorMessage('only Network team members can assign to the Network group');
current.assignment_group = previous.assignment_group; //revert to previous value
current.setAbortAction(true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 04:15 AM
Hi David Dubuis
I don't want to hide the network group to other members.I just want display a message to other group members .For example the current user is from database group if the user modify the incident assignment group from Hardware group to network group then have to display like this "You are not a member of this network group so you will not be able to change this" .If the current user is from network group then the user can change this as network group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 04:25 AM
OK so you can use an before update business rule (and insert as well if that fits your requirement) to do that. Set it to run when the assignment groups changes and say:
if(!gs.getUser().isMemberOf('Network') && current.assignment_group.getDisplayValue() == 'Network'){
gs.addErrorMessage('only Network team members can assign to the Network group');
current.setAbortAction(true);
}
This should abort the update of the record if the user is not a member of the network team but the assignment group has changed to network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 04:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 04:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2018 04:38 AM
It hasn't updated the record, you can another line to return it to the previous value.
if(!gs.getUser().isMemberOf('Network') && current.assignment_group.getDisplayValue() == 'Network'){
gs.addErrorMessage('only Network team members can assign to the Network group');
current.assignment_group = previous.assignment_group; //revert to previous value
current.setAbortAction(true);
}