Auto Populate Assignment group based on variable on Record producer

Ankita Gupte
Kilo Sage

Hello Expert,

 

I have look up variable "u_issue_category" on Record Producer report an issue which raises an incident after submitting the form. Issue category variable shows some values but if the value selected is "One" then after submitting the record producer when incident is created and this incident should have assignment group as One Support.

 

Please help with client script to achieve this.

 

 

1 ACCEPTED SOLUTION

Hi @Ankita Gupte ,

I think You no need Business rule also you can check condition on record producer script and give group.

if (producer.u_issue_category == 'One') {
    current.assignment_group = 'da3ef7c69756411051cb341e6253af43'; //add group sysid
}
If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

By Default value I can set value only for one issue category. There are 2-3 issue categories which need to be auto populated to different assignment groups. Please help with the same.

This client script is onload or onchange or onsubmit?

Also should I use catalog client script or normal client script?