incident comment API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 11:31 PM
Hi Team,
We need to share incident comments via using API we have developed this API by using REST API explorer incident table API. So, we able to fetch the response but customer wants only latest(updated) comment. Could you please help on this, how to fetch only latest comment.
Thanks & Regards,
Gori
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 11:42 PM
Hello @Shabbir1 ,
I believe this can be achieved by defining the rest api on sys_journal_field table. we can query it for our incident table and comments field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 11:57 PM
I don't think that sys_journal_table is available via rest api explorer, if it is available then we can use it and you can pass the sys id of the incident it will give you the comments or the second option is to create a scripted rest api which won't take much time and just return the latest comments, if you need help with the code I can help.
Let me know how 🙂
Thanks,
Brahm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 10:39 PM
Hi Brahm,
Could you please share the code?
Thanks,
Shabbir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 04:54 AM
Hi @Shabbir1 , Try to use 'getJournalEntry(1)'