How to I make a new ticket auto assign to an Assignment Groups

juliochacon23
Tera Expert

Hi, I need help.   If an employee submits a new incident on our ServiceNow Self Service Page, we want the incident to be auto-assigned to a specific assignment group if they check a check box on the new incident form before submitting the incident.   The check box is tied to a field in the incident form.   Is this a business rule? See screenshot below

ticket.JPG

Thanks

-Julio Chacon

1 ACCEPTED SOLUTION

Check if there is any BR on the table or any script in the record producer doing this.


View solution in original post

12 REPLIES 12

Ashish Kumar Ag
Kilo Guru

Gurpreet solution will work perfectly. I have done the same in a requirement.



Cheers.


mdsannavulla
Kilo Guru

You can use record producer script to set the any field in incident table like



var gr1 = new GlideRecord('sys_user_group');


  gr1.addQuery('name','IS Service Desk');


  gr1.query();


  if (gr1.next())


  current.assignment_group = gr1.sys_id;


mdsannavulla
Kilo Guru

And include your check box condition before above script like


if( producer.varaiblename == 'true')