- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2022 11:06 PM
How can i remove timestamp values from comments when i am passing it in notification through email script in one new row of table
Solved! Go to Solution.
- Labels:
-
Cost Management (ITSM)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2022 11:20 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2022 11:20 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2022 07:21 AM
Thank you so much it worked for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2022 07:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2023 01:55 AM
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