- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2020 03:51 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2020 05:55 AM
Hi,
1. Create a onBefore business rule on incident_task table.
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2022 02:13 AM
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.
Regards,
Surjith