How to associate a child incident to a parent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2025 10:36 AM - edited ‎08-19-2025 10:37 AM
For example, we have an Excel file with two fields containing serial numbers. If one of the fields matches, the corresponding record should be associated with the incident ticket and set as its parent. This should be achieved using the transform map script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2025 10:48 AM - edited ‎08-19-2025 10:48 AM
@Prithvi Ramesh1 , yes it can be achieved by using onBefore script for your Transform Map.
Shashank Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2025 10:50 AM
I already wrote this script but hopefully it is not working could you please check it below -
if (source.u_pluginid == target.getValue('short_description')) {
log('Prithvi' + target.getValue('short_description'));
var gr = new GlideRecord('incident');
gr.insert();
gr.parent_incident = target.getUniqueValue();
log('Prithvi' + target.getUniqueValue());
gr.insert();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2025 10:53 AM
@Prithvi Ramesh1 , It is not looking the correct script for above scenario. What's your exact requirement is?
Shashank Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2025 10:57 AM
Hello @Shashank_Jain , Please refer to the screenshot below. The first record should be treated as the parent record, and any other records with the same Plugin ID should be associated as child records.