Incidents are getting assigned to non Incident group type assignment groups

KapilB789322145
Tera Contributor

In snow instance, we have an restrictions to assign the incident tickets to an assignment group which has type as "Incident". But Incidents are getting assigned to other group type like change approval, change assignment by some UI action or API.

 

Requirement: 

To restrict the incidents to be assigned to non-incident group type irrespective of API, UI Action.

Also, how to restrict the API user to create incidents to non incident group?

6 REPLIES 6

Chaitanya ILCR
Mega Patron

Hi @KapilB789322145 

 

you can create a BR for this

 

 

ChaitanyaILCR_1-1765972471322.png

ChaitanyaILCR_2-1765972502688.png

add your desired message 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Thanks Chaitanya.

 

I have created the BR now it pop up an error message to enter correct group type but assignment group field filled up with the assignment group name. 

Is there any way to clear out the assignment group field upon show up the error message?

Hi @KapilB789322145 ,

 

you can update the BR like this

ChaitanyaILCR_0-1768292054989.pngChaitanyaILCR_1-1768292077621.pngChaitanyaILCR_2-1768292108777.png

BR script

(function executeRule(current, previous /*null when async*/) {

	// Add your code here
	current.assignment_group='';
	gs.addErrorMessage('assignment group should be of incident type');
	current.setAbortAction(true);

})(current, previous);

add your message content inside gs.addErrorMessage()

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

GlideFather
Tera Patron

Hi @KapilB789322145,

 

have you reviewed Assignment rules?

 

PS: if possible don't call it Snow, it's another product. Rather go with SN, ServiceNow or Now.. ;))

_____
No AI was used in the writing of this post. Pure #GlideFather only