SCTask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 09:38 AM
Hello team when adding a close comment to SCTask it show as created by Sytem rather than user creating the comment

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 10:22 AM
Hi @yoli1,
How are you adding the comment when close notes are filled?
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 10:59 AM - edited ‎09-22-2023 11:00 AM
@Peter Bodelier Hi this is my BS :
(function executeRule(current, previous /*null when async*/ ) {
var item = new GlideRecord('sc_req_item');
item.get(current.request_item);
item.close_notes = current.close_notes; //set close_notes to requested Item
item.update();
})(current, previous);
i also get this error :
the weird thing is when i'am trying to do the exact BS on another instance it works fine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 11:02 AM
Hi @yoli1,
This is only setting the close note. There is something else setting a comment as well.
The error is not related to this as far as I can see.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 11:15 AM
@Peter Bodelier i have also this BS that sets comments
(function executeRule(current, previous /*null when async*/) {
var item = new GlideRecord('sc_req_item');
item.get(current.request_item);
item.comments = current.comments.getJournalEntry(1); //Get last journal entry
item.update();
})(current, previous);
but the comment i added was a close note thats why i provided the bs related to close notes