I am developing a site with osTicket v1.9.8 ticket system, which works fine, but I would like to know how to accomplish Thread Mail Structure while Agent or admin post a reply back to customer.
i.e When osticket admin post a reply back to customer, the mail should contain the following:
These are the steps that I have done so far:
How do I bring entire conversation in Textarea box or in reply mail.
btw,I tried to post question in their forum page. But couldn't find how to post a new one.
Thanks in advance.
Tickets can be created in the osTicket system by sending an HTTP POST to api/tickets.xml, api/tickets.email or api/tickets.json depending on the format of the request content. message: required Initial message for the ticket thread.
When an agent opens the ticket, the default will be to direct them to the Reply box at the bottom of the ticket. Based on their Role permissions, Agents can reply back to the end user by typing their response into the box- including adding attachments, links and embedding YouTube videos.
Currently, the API support creation of tickets only – so no modifications and deletions of existing tickets is possible via the API for now. Tickets can be created in the osTicket system by sending an HTTP POST to api/tickets.xml, api/tickets.email or api/tickets.json depending on the format of the request content.
Any items in the Ticket Thread that are with the Blue or Orange banner are also visible to the Ticket Owner as well as any collaborators on the ticket when they check the ticket status from the Client Portal of the help desk.
It looks like the easiest way would be to change the way that "original message" works. To do that, edit the file at /include/class.thread.php and around line 2513, change this line:
$entry = $this->entries->filter(array(
'type' => MessageThreadEntry::ENTRY_TYPE,
'flags__hasbit' => ThreadEntry::FLAG_ORIGINAL_MESSAGE,
))
->order_by('id')
->first();
To be this:
$entry = $this->entries->filter(array(
'type' => MessageThreadEntry::ENTRY_TYPE,
'flags__hasbit' => ThreadEntry::FLAG_ORIGINAL_MESSAGE,
))
->order_by('id');
//->first(); //commenting this line;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With