How to get only additional comments but not date and time????

Gokulraj1
Kilo Contributor

Hi team,

Please find the below image

 

find_real_file.png

Actual additional comment added is " comments added by assignee"  but when notification trigger's it shows additionally the date and time ,I don't want this .How to do that??

Regards,

Gokulraj S

 

3 REPLIES 3

nayanawadhiya1
Kilo Sage

Write this in Mail_Script and use it into notification - 

var comment = current.comments.getJournalEntry(1);

var dateRE = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.*\n/;

template.print(comment.replace(dateRE, ''));

Refer - 

Scripting for Email Notifications

Any update on this?
Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Jaspal Singh
Mega Patron
Mega Patron

Hi Gokulraj,

 

Link should help you in achieving the same.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.