How to re-assign an incident to other group if the user is a member of that group only?

gokulraj
Giga Expert

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

1 ACCEPTED SOLUTION

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);


}


View solution in original post

14 REPLIES 14

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.


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


you could also do it just with filters and actions:



find_real_file.png



find_real_file.png



find_real_file.png


David Dubuis


error.png



It shows the error message but it is assigned to network team.If that operation aborted means fine.!!!




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);


}