A recent project I am working on requires the retrieval of comment journal fields from a ticket for use on an external portal.
This can be achieved using a direct table level call using the ServiceNow API.
I crafted the GET message to look like this:
As you can see the table being called is the where all journal entries for tickets are stored (sys_journal_field) and the element I need is “comments”- simply adding the sys_id of the record or ticket afterwards will return all journals.
You can test this by using PostMan.
Also bear in mind you will need to expose the journal table to the API so ServiceNow can GET the record information, this can be achieved by editing the system property: glide.ui.permitted_tables.
Thanks for reading- I hope this helps someone!