The CreatorCon Call for Content is officially open! Get started here.

Assignment Group auto populate from CI

joseeduardo
Giga Expert

Hello guys I am trying to do this:

  • Every time the Configuration Item changes on the Incident form, the value of the Assignment group field should default to the value of the Support group from the selected Configuration Item. The change should be reflected immediately on the form allowing the user to change it manually before submitting the form and it needs to be achieved   by using client scripts     .I did this: but I dont get it to work!

Captura.PNG

1 ACCEPTED SOLUTION

Hey Kalaiarasan P thank you very much! I really appreciate a lot your help though I used this!



function onChange(control, oldValue, newValue, isLoading) {  


    if (isLoading)  


          return;  


    var group = g_form.getReference('cmdb_ci', setGroup);  


}  



function setGroup(group) {  


    if (group)  


            g_form.setValue('assignment_group', group.support_group);


}  



And it worked! but seriously! Thank you very much! you helped me understand!


View solution in original post

5 REPLIES 5

shivani18
Tera Contributor

shivani18_0-1710298477745.png

My script for same is not working. Can someone please help