Link / display [cmdb_ci] configuration fields onto [incident] default view form

patrykgryze
Tera Contributor

How can I display [cmdb_ci] configuration fields onto [incident] default form?

Can I dot walk cmdb_ci like incident.cmdb_ci?

3 REPLIES 3

Peter Bodelier
Giga Sage

Hi @patrykgryze,

 

Yes you can!

Take a look here in the List Collectors part:

Dot-walking examples (servicenow.com)


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

patrykgryze
Tera Contributor

I really struggle here for so long.  How can I specifically place life_cycle_stage field that is specifically linked to a cmdb_ci on [incident] form?

 

What I am trying to accomplish here is to make this field a come up on form and become mandatory when cmdb_ci is selected on incident form

//Type appropriate comment here, and begin script below
if (oldValue == '' && newValue != '') {

// show field below
g_form.setVisible('u_life_cycle_stage_incident', true);

} else {

g_form.setVisible('u_life_cycle_stage_incident', false);
}
}
 
I created a ‘reference field’ on form design but it is not linking to cmdb_ci when updated.

Hi @patrykgryze,

I think there is no need to create reference fields and scripts at all. Have you checked the documentation I mentioned?


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.