Notificaiton using the comments variable looks very condesnsed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 07:56 PM
Hi All,
Wondering if anyone has come across this issue and if they have solved it. I have a notificaiton on the RITM table which will send additional comments when added. It displays using ${comments}
But what i've found is there is no space between the comments and it looks very condensed. Anyone come across this before?
Does anyone have any ideas to make this a bit more friendly to read?
Looking at my correspondence with HI they have space between the comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 08:13 PM
Hi,
I had a similar requirement where i opted for email script and then used it in notification instead of ${comments}
var comments= current.comments.getJournalEntry(2);
var splitCom = comments.split("\n\n"); // this can provide some space
for (var i = 0; i < splitCom.length; i++)
gs.info(splitCom[i]);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 08:59 PM
you can use email script and handle it.
Do you want only text from the latest comments or you want to print all the comments?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 02:02 AM
Hi Ankur, I would like it to be formatted the same as the out of the box. Just with more space. I'm unsure why it is so condensed as it is hard to read. Servicenow must be aware of it as if i add comments in a case ticket it shows with space.