CMDB | Populate IM assignment group when Service is selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 02:13 AM
I'm not sure how to solve this problem. I have tried so many things.
When ‘Support group’ is available in the selected Service, then populate the ‘Assignment group’ field with it. An information message will be displayed under the ‘Assignment group’ field if it was already filled with another group.
Information to be fetched from the server-side using GlideAjax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:41 AM
Did not understand the question. Can you tell me what you are trying to do? add the screenshot where you are getting the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:45 AM
I'm not getting any errors. Problem is the client script and the script include doesn't work.
When selecting the Service, it should take services support group if it's available and populate the assignment group filed with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 05:53 AM - edited 07-31-2023 05:55 AM
g_form.getValue('assignment_group');//this gives sys_id of the assignment group and your script include is returning display value of the assignment group, you are comparing sys_id of assignment group with display value ,so you are getting incorrect result
Make below changes in your client script
currentassignmentgroup = g_form.getDisplayvalue('assignment_group');//use correct assignment group field name
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 02:00 AM
Sadly it still doesn't work. It should populate assignment group filed when Service is selected and the filed should by populated with the support group.