When the Category is Network and the Assignment group is any group other than Network, the user shou

rahult659802468
Tera Contributor

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

2 REPLIES 2

Rohini S Sane
Tera Guru

@rahult659802468 ,

 

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 Manders
Mega Patron

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