RITM<>SCTask Comments - Remove Duplicate System Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 08:20 AM
I'm currently working on a BR to send work notes from RITM to SCTask:
- "RITM Work Notes to SCTask"
-- Table: sc_req_item
-- After/ Update
-- When Work Notes Changes
(function executeRule(current, previous /*null when async*/) {
var sctask = new GlideRecord('sc_task');
sctask.addQuery('request_item', current.sys_id);
sctask.query();
while(sctask.next()) {
sctask.comments = current.work_notes.getJournalEntry(1);
sctask.update();
}
})(current, previous);
It works.
- HOWEVER -
I get what appears to be both a user AND system update on the RITM Activity Stream:
How can I remove the "Comment added from" record?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 08:23 AM
@appstorm Looks like there is another business rule running which is adding the additional comments as and when a worknotes is added. Please deactivate the business rule and the comment will no longer appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:35 AM
I thought the same, but the other only fires when Additional Comments changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 08:26 AM
Hi @appstorm,
Please try this below thread.
Please accept my solution if it resolves your issue and thumps 👍 up
Thanks
Jitendra