Hi,
I would like to always add the full past conversation to each answer send to a ticket-creator. Doing this by adding a predefined answer does not work as intended, as this adds the full conversation above our signature.
Furthermore, I dont want my agents to always have to select that predefined answer.
In which file is the sending taking place, and which code do I need to add to include the full conversation? i.e. which file is included right after hitting the "create answer" button and which php-code will create the content for %{ticket.thread.complete.reversed}?

I have already managed to edit the function send() in the class Email in the file include/class.email.php which worked fine to add some styling to the emails. However, as there is the full $message given to the function as a parameter, I cannot load the full conversation as there is no ticket id, So I guess this would have to be done earlier in the process..?

Otherwise, if there is a possibility of getting the current ticket-id within this send-function, that would help a lot, as I could then just add the return of class TicketsAjaxAPI function cannedResponse()

No code changes requried.
Go to: Admin panel -> Emails -> Templates
Click on your active template(s)
Add the variable {ticket.thread.complete.reversed} to the email templates of your choice.
note: I recommend the Response/Reply template.
Click Save Changes.

Thank you!
The canned response says "Staff" for every message that was written in this conversation by someone from the helpdesk. Can I replace that by the actual name of the user who wrote the answer?

@membra

Do you have "Agent Identity Masking" enabled? (Admin Panel > Settings > Agents)

Cheeers.

Write a Reply...