Auto Populate CI value from Incident's CI in Incident Task at time of creation from Incident

v-jai
Kilo Expert

Please help to achieve below scenario:

Incident task to have Configuration item field on the form which will auto-populate with Incident CI at the time of creation from an Incident.

1 ACCEPTED SOLUTION

Suseela Peddise
Kilo Sage

Hi,

1. Create a onBefore business rule on incident_task table.

find_real_file.png

 

And add below line of script in Advanced tab

current.cmdb_ci=current.incident.cmdb_ci;

This method shows the field value on form once you save the record.

2. If you want to auto populate the CI value as soon as form load , then use 'display' business and write onLoad client script to populate

find_real_file.png

And add below line of script 

g_scratchpad.CIpopup=current.incident.cmdb_ci;

And then onLoad client script:

 g_form.setValue('cmdb_ci',g_scratchpad.CIpopup);

 

You can also use GlideAjax or getReference methods

If I have answered your question, please mark my response as correct and/or helpful.

 Thanks,

Suseela P.

View solution in original post

5 REPLIES 5

Hi Suseela,

We need to display the CI name of particular user in the incident form.

That is during submission or after saving the incident record in the incident table.

Caller name of that incident record should auto populate the CI name.

Is it possible to achieve on incident table.

find_real_file.png

Regards,

Surjith