Need to see the created Change in the work notes section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:34 AM
Hi Team ,
In the incident form, i want see the created Change records in the work notes section.
How to achieve this.
Regards,
Abhilasha G T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 09:03 AM
Hi Rohit,
Thanks for your reply,
I have added /configured the change request field on the Filter Activity in the notes tab.
Regards,
Abhilasha G T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 02:44 AM
Hello ,
On the the incident table - please check any field exist to track the change number/if not add custom field to which will update the change number once created from incident.
Add the script on creation of change from incident to update the change number in the work notes of incident.
Supriya Waghmode |ServiceNow Consultant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 07:09 AM
Hi Supriya,
Thanks for your reply, we are not supposed to create any custom field.
Regards,
Abhilasha G T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 04:13 AM
in your screenshot it's already there.
What's required extra?
You can use after insert business rule on CHG table
Condition: current.parent.sys_class_name == 'incident' && current.parent != ''
Script:
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var gr = new GlideRecord("incident");
if (gr.get(current.parent)) {
gr.work_notes = 'Change ' + current.number + ' has been added under incident' + gr.number;
gr.update();
}
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2025 05:13 AM
Hi Ankur,
Thank you for your response.
I created the change record through incident, but that change record not sitting in the related tab of change request. I have added manually the related change request on the incident form. In PDI OOB also its not working.
I have two use cases:
1. When I create a change from the context menu, and the change is reflected in the Related records tab - Change Requests
2.I am able to see all these changes in the work notes section of the incident record
So that I can see a history of all fix attempts that relate to the incident in question
Regards.
Abhilasha G T