When the Category is Network and the Assignment group is any group other than Network, the user shou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 03:33 AM
When the Category is Network and the Assignment group is any group other than Network, the user should not be able to create an incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 06:10 AM - edited ‎10-02-2024 06:12 AM
You can write before insert business rule on incident table.
if(current.category == 'network' && current.assignment_group != 'sysid of network group')
{
current.setAbortAction(true);
}
"If you found my answer helpful, please give it a like and mark it as the accepted solution.
Regards,
Rohini Sane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 06:15 AM
What users are you talking about? Normally a user is not able to select the assignment group of a ticket, because it's not the user that decides what group is to resolve the incident.
What is your use case? Can you elaborate? I would think it should be the other way around: if a user creates a network incident, the incident should be assigned to the network group.
I could imagine you mean it to be something different: only users from the network group should be able to create a network incident, but I don't think that's feasible either, since normal users will just select 'other' and create the incident like that.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark