- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 07:19 AM
I have a customized field called' Incident' on the change form, when I add an incident to that field automatically it should show the incident in the 'Incidents Fixed By Change' Related List.
I know OOB when we add the Change request in the Incident form, then it will automatically show the incident in the 'Incidents Fixed By Change' Related List.
Can any one help how to achieve this requirement?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 07:51 AM
Hi @Rajamouly ,
Just to let you know, once you add the incident to the Change Request field on the incident form which resides in Related records section, it shows up in the "Incidents fixed by Change".
So if you want to show the incident selected on the change request form, the way to go would be to have a BR which updates the Change request field on the same incident.
Let me know if this helps!
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 09:13 PM
I modified script like below, it is working fine.
(function executeRule(current, previous /*null when async*/) {
var inc = new GlideRecord('incident');
if(inc.get(current.u_incident)){
inc.rfc = current.getUniqueValue();// sys_id of change request
inc.update();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 07:36 AM - edited 11-15-2022 07:37 AM
Hi @Rajamouly ,
You can achieve this by creating new BR on Change table and condition would be when incident field changes, insert, update condition as per your requirement you can select. It would be after BR.
Script will be whenever new values selected then glide "incident" table and add current change request record on incident form's change field. As per your requirement further script you can wrote to remove from this by removing change record from incident field via Script.
I hope it will help to understand how to start the configuration. If you want whole script then kindly let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 07:59 AM
I have written below business rule
(function executeRule(current, previous /*null when async*/) {
var inc = new GlideRecord('incident');
inc.rfc=current.sys_id;
inc.update();
})(current, previous);
its not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 08:07 AM - edited 11-15-2022 08:07 AM
Hi @Rajamouly
Your BR should be After Update
And condition should be : Incident - Changes and Incident - is not empty
(function executeRule(current, previous /*null when async*/) {
var inc = new GlideRecord('incident');
inc.get(current.getValue("incident"));//backend name of incident field on change request form
inc.rfc = current.getUniqueValue();// sys_id of change request
inc.update();
})(current, previous);
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 08:16 AM
HI @Aman Kumar S I have updated the code , but it is creating a new incident under 'Incidents Fixed By Change' Related List.