- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 10:16 AM
Hi,
How to check if the user who is updating work notes or additional comments section is part of assignment group in the ticket. If the user the is part of assignment group, only then I want to assign the ticket to that particular user.
For that I have written below Business rule.
Please help me.
Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 10:21 AM
Hi Abdul,
Try using below as script.
if(gs.getUser().isMemberOf(current.assignment_group))
{
current.assigned_to=gs.getUserID();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 10:21 AM
Hi Abdul,
Try using below as script.
if(gs.getUser().isMemberOf(current.assignment_group))
{
current.assigned_to=gs.getUserID();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 10:23 AM
Hi,
create a before update BR on the incident table and just check like this
if(gs.getUser().isMemberOf(current.assignment_group.toString()))
{
current.assigned_to=gs.getUserID();
} else {
gs.addErrorMessage("your error comes here");
}
Mark the comment as a correct answer and helpful if this has helped to solve the problem.