- Edited
I want to be able to automagically generate tickets from my app, as if they were generated from the "new ticket" button on the osTicket page by a support person.... rather than have support monitor different snmp events and email patterns. Catching the input triggers is simple... but I'm hung up on being able to create the tickets as if a support person was manually creating them.All my attempts so far have resulted in the tickets looking like the user created them themselves... when they were in fact created through the automation.I've looked at sending an email (to the user who needs to be notified, from the support desk), and the exposed options in the API ,using the following template:$data = array( 'name' => 'from me', 'email' => 'me@me.com', 'subject' => 'Test API message', 'message' => 'This is a test of the osTicket API', 'ip' => 'api allowed ip :) ', 'attachments' => array(),);With no success (yes, the ticket is created.. but not as if the support person manually created it).I've also done a little digging through the code and I cant see any obvious way of doing this... All my attempts to send an email (as per above) ends up with the user getting a standard "support request opened" template message... not the details of the support ticket that were sent to osTicket. Same for a JSON inject through the API.I'd really like the message that was sent to osTicket to be forwarded to the user and identify that it was created by support, not the user.I would think this would be a 'simple' activity - open a ticket on behalf of a user (the API providing the accreditation of the ability to create tickets)... but I cant figure out how.I'd hate to have to write directly to the database... and I didnt see a mod available... but this is available through the screen - so it's possible - its just a matter of figuring out the hooks to inject it through the API...Anyone have any ideas?