how to add latest worknotes/Additional Comments in the email

sk59
Tera Expert

Hi All,

I want to show the latest comments/worknotes added on a ticket in the email which I am sending.

currently I am writing something like below, but it is blank in the email.

Comments: ${current.comments.getJournalEntry(1)}

Worknotes: ${current.work_notes.getJournalEntry(1)}

 

5 REPLIES 5

Rohit Kaintura
Mega Guru

First make a event

 

You can do this by creating a before BR in which you send the additional comments value and use gs.eventQueue('event_name', current, gs.getUserID(), current.comments);

 

and send when condition in notification to event is fired and select your event.

And then use your comments value in notification.

 

 

Please mark my answer correct and helpful if my answer helped u. Thank you.

Hi rk,

 

I am running the notification on insert/update I do not want to use the BR.

I want to show the latest comments in the email body. current.comments displays all the comments

Use this:

 

current.comments.getJournalEntry(1);

 

Please mark my answer correct and helpful if my answer helped u. Thank you.

Jaspal Singh
Mega Patron
Mega Patron

If this is being used directly in Notification then you need to use

Comments:${comments}

Work notes: ${work_notes}

 

Also, you need to change the system property that defaults to last 3 latest comments.

find_real_file.png