Auto Setting Assignment Group

MWright1
Giga Guru

We have a requirement to set the assignment_group (ONLY for NEW Incidents) to the Service Desk.

 

I was able to restrict the list that users see to only Service Desk group.  However, I would like to automatically select it.  I created an on load Client Script  to set it but it won't work.  I have tried:

1.   Using the name of the group

function onLoad() {
   g_form.assignment_group = "Service_Desk"; 
}

 

2.   Using the id of the group

function onLoad() {
   g_form.assignment_group = "11d7264f1bdc75503604a7d4bd4bcb43";
}

 

Nothing happens.  To be sure, I put alert statement to see if the function is getting called and it is.

 

How can I set the assignment group when a new Incident is created in the backend?  I am able to successfully assign this to the correct group when they submit it from the front end (Service Portal).  But it won't show up if the tech creates the ticket through the backend.

 

Please help.  Thanks.

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi,

Try using

function onLoad() {
   g_form.setValue('assignment_group','11d7264f1bdc75503604a7d4bd4bcb43');
}

View solution in original post

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi,

Try using

function onLoad() {
   g_form.setValue('assignment_group','11d7264f1bdc75503604a7d4bd4bcb43');
}

OMG!  You are a genius! 

SAI VENKATESH
Tera Sage
Tera Sage

Hi @MWright1 

 

You can before insert business rule and you can set the assignment group on the incident table.

 

 

Thanks and Regards

Sai Venkatesh