osTicket icon indicating copy to clipboard operation
osTicket copied to clipboard

Chat attachments on created ticket

Open fernandogiacomino opened this issue 3 years ago • 2 comments

Hi Remigijus! I ca'nt find the way to send offline chat attachments to new created ticket in osTicket. How to take LHC attachments ($chat->attachments ???) and send with $data to osTicket api.

$data = array( ‘name’ => $name, ’email’ => $email, (...) ‘attachments’ => array() );

fernandogiacomino avatar Nov 29 '21 20:11 fernandogiacomino

If you are talking about about attachments related to specific file you can just use

erLhcoreClassModelChatFile::getList(['filter' => ['chat_id' => $chat->id]])

and then file_get_contents($file->file_path_server);

remdex avatar Nov 30 '21 06:11 remdex

Yes, I'm trying to send files attached to the chat, to osTicket. But I can't find the way to use that code...

fernandogiacomino avatar Nov 30 '21 14:11 fernandogiacomino