Assignment group based on Configuration item

pasupuleti loke
Tera Guru
Tera Guru

Assignment group field should display(shouldn't assign directly instead it should allow us to choose) all the related assignment groups based on the Configuration item chosen.

for example:

If we choose CI from database, Assignment group field should display all the available database groups.

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Looks like your requirement is not correct, Generally only one Assignment is associated with CI but you are expecting list of Assignment group.? I don't think there is logic in it but if you want to populate assignment group based on CI select then below script will do.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
	if (isLoading || newValue === '') {
		return;
	}

	g_form.getReference('cmdb_ci' , function(response){
		g_form.setValue('assignment_group' , response.support_group);
	});
}
Please hit like and mark my response as correct if that helps
Regards,
Musab

Musab Rasheed
Tera Sage
Tera Sage

Hello,

If issue is resolved Kindly mark my answer as correct and close the thread.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab