How can i remove timestamp values from comments when i am passing it in notification through email script in one new row of table

Neha Tiwari5
Tera Contributor

How can i remove timestamp values from comments when i am passing it in notification through email script in one new row of table

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello Neha,

Below is working expression you can use to remove the timestamp from the comments

current.comments.getJournalEntry(1).match(/\n.*/gm).join("\n");

Please mark answer correct/helpful based on Impact

View solution in original post

5 REPLIES 5

Saurav11
Kilo Patron
Kilo Patron

Hello Neha,

Below is working expression you can use to remove the timestamp from the comments

current.comments.getJournalEntry(1).match(/\n.*/gm).join("\n");

Please mark answer correct/helpful based on Impact

Thank you so much  it worked for me.

Hello Neha Glad it worked. Can you also mark tye answer as correct Thanks.

Hi @Saurav11 

 

Can you please help me to include user details who updated it but timestamp should be removed from the comments section. I have used the same script but issue is it is removing both timestamp and user details who updated it

 

Thanks,

Anusha