- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:36 PM
In Incident form assigned to someone then update the worknotes something in case form.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:39 PM
Hi @Xila ,
How are you defining relationship between case and incident?
Is there any custom field ? Then map that in below code.
Write down business rule on incident form
When : After Update
Condition: assigned to changes AND case is not empty(your reference field)
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var gr = new GlideRecord("sn_customerservice_case");
gr.addQuery("referenceFieldOnCaseForm", current.sys_id); //Writedown your field name from case table which refers to the incident number
gr.query();
if (gr.next()) {
gr.work_notes = "Assigned To is Changes to " + current.getDisplayValue('assigned_to');
gr.update();
}
})(current, previous);
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:39 PM
Hi @Xila ,
How are you defining relationship between case and incident?
Is there any custom field ? Then map that in below code.
Write down business rule on incident form
When : After Update
Condition: assigned to changes AND case is not empty(your reference field)
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var gr = new GlideRecord("sn_customerservice_case");
gr.addQuery("referenceFieldOnCaseForm", current.sys_id); //Writedown your field name from case table which refers to the incident number
gr.query();
if (gr.next()) {
gr.work_notes = "Assigned To is Changes to " + current.getDisplayValue('assigned_to');
gr.update();
}
})(current, previous);
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:41 PM
Hello,
This is easy requirement, what have you tried so far ?
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 11:43 PM
hi @Xila
Can you pls explain your use case as case and incident are different, so exactly what you want to do??
If you want to copy-additional-comment-worknotes-from-incident-to-case, pls check below link:
Please mark this as helpful or solution for the query, if it helped you or resolved your doubt.