Notificaiton using the comments variable looks very condesnsed

Michael Leone
Tera Guru

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?

 

MichaelLeone_0-1703044545834.png

 

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.

 

3 REPLIES 3

Addy22
Tera Guru

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]);

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Michael Leone 

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?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.