Comments/Worknotes don`t show up in a journal stream when inserted programatically

Makosko
Tera Expert

Hello,

when I create a new journal entry record by directly writing to the "sys_journal_field" table, I don`t see any updates in the journal/activity stream section of a ticket.

The code I have put together for this as follows:

var gJournalEntry = new GlideRecord("sys_journal_field")

        gJournalEntry.initialize();

        gJournalEntry.name = "task";

        gJournalEntry.element = "comments"; ( or work_notes )

        gJournalEntry.element_id = "incident_sysid";

        gJournalEntry.value = "My Comment/Worknote value";

        gJournalEntry.insert();

any ideas why it does not show up ??

Cheers

Maros

2 REPLIES 2

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

yogesh15dd
Tera Guru

Hi Maros,



I have the same issue, did you find the solution for this?



Regards


Yogish