CMDB | Populate IM assignment group when Service is selected

MalackaT
Tera Contributor

MalackaT_0-1690794586909.pngMalackaT_1-1690794624185.png

 

 

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.

 
 
 
 
 
 
 
 

 

6 REPLIES 6

pratiksha5
Mega Sage

Did not understand the question. Can you tell me what you are trying to do? add the screenshot where you are getting the error.

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.

manjusha_
Kilo Sage

@MalackaT 

 

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

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact

Thanks,

Manjusha Bangale

 

 

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.