0
var workNotes = current.work_notes.getJournalEntry(-1); //gets all journal entries as a single string
 var workNotes = current.work_notes.getJournalEntry(1); //gets last journal entries
How to get Comments / JournalEntry field value in ServiceNow
Working Code Asked question September 21, 2023