Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

osticket ticket Strip Quoted Reply

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:

  • Reply text
  • Original thread message posted by customer (Question).And if there was any conversations made between them. It should be also listed. (just Like thread mail structure or similar to support mail replies).

These are the steps that I have done so far:

  • I have disabled Strip Quoted Reply check box in settings.php(Admin Panel->Settings->Email)
  • When admin Post reply to the ticket, the select box for response shows two options 1:Original Message- when selected will append only the original thread message posted by customer in reply Textarea box. 2:Last Message- when selected will only append the last message in reply Textarea box.

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.

like image 783
jones Avatar asked Jun 04 '15 08:06

jones


People also ask

How do I create tickets in osTicket?

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.

How do I reply to a ticket?

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.

Can I edit or delete tickets via the API?

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.

What are the ticket threads visible to the owner?

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.


1 Answers

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;
like image 151
Joshua Walcher Avatar answered Oct 12 '22 12:10

Joshua Walcher