- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 09:50 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 09:55 AM
Hi,
Try using
function onLoad() {
g_form.setValue('assignment_group','11d7264f1bdc75503604a7d4bd4bcb43');
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 09:55 AM
Hi,
Try using
function onLoad() {
g_form.setValue('assignment_group','11d7264f1bdc75503604a7d4bd4bcb43');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 10:03 AM
OMG! You are a genius!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 09:57 AM - edited 05-06-2024 09:58 AM
Hi @MWright1
You can before insert business rule and you can set the assignment group on the incident table.
Thanks and Regards
Sai Venkatesh