Copy Case Additional Comments into Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 05:58 PM
Hi, I'm trying to copy additional comments from Case (Portal) into Incident and created before update business rule, this seems not to work. Can someone assist?
(function executeRule(current, previous /*null when async*/ ) {
if (!gs.nil(current.comments)) {
var grInc = new GlideRecord('incident');
if (grInc.get('sys_id', current.incident.sys_id)) {
grInc.comments = 'Work notes update on incident ' + current.number + ': ' + current.comments;
grInc.update();
}
}
})(current, previous);
Thanks,
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 04:38 PM
Hi @AnveshKumar M ,
That didn't work. The BR that I created from Incident to Case works great and not sure why the other way around is not working.
Thanks,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 10:59 PM
Hi Sunil,
Can you share the br you created from Incident to Case? Thanks