Incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:19 PM
Incident form update work notes "Test" & Related Records select Problem id like PRB000010 and same work notes "Test" should update in Problem record work notes.
Any idea share the code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:37 PM
HI @Ram012 ,
So sorry, but your question is confusing.
Can you share some screenshots along with some more explaination.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:39 PM
Hi @Ram012
Create a Business rule on incident table with following conditions and script
Thanks,
Swathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 11:48 PM
Hello @Ram012 ,
If the Incident is already related to a Problem and you want all Work notes that are now being added to the Incident to by synced to that Problem then create a Business Rule like this:
Script:
(function executeRule(current, previous /*null when async*/ ) {
var grProblem = current.problem_id.getRefRecord();
grProblem.work_notes = 'Work notes from parent Incident: ' +
current.work_notes.getJournalEntry(1);
grProblem.update();
})(current, previous);
But if your requirement is that, the moment a Problem gets related to the Incident, all existing Incident Work notes shall be copied to the Problem, the Condition and Script would need to be modified:
- Condition: Problem Changes AND Problem is not empty
- Script: replace the getJournalEntry parameter 1 with -1
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 12:24 AM
Please check the approach shared by @Robert H if you want to copy work notes from INC to Related problem
You can also achieve that using flow designer with no scripting
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