Eduardo G. Posted October 29, 2020 Share Posted October 29, 2020 Hi! I'm using OpenTicket local API call to automatically create a ticket for a client. I want to create the ticket as admin, but cant find the way to set admin username in the ticket (`admin` column in `tbltickets` table) There's an admin bool parameter: "Is an Admin opening the ticket" that I set to true, but nothing changes. In the end, OpenTicket keeps creating ticket as client, not as admin. Can you hel me creating an admin ticket? 0 Quote Link to comment Share on other sites More sharing options...
string Posted October 29, 2020 Share Posted October 29, 2020 $postData = array ( 'deptid' => '1', 'subject' => 'This is a sample ticket', 'message' => 'This is a **sample** ticket message', 'clientid' => '1', 'priority' => 'Medium', 'markdown' => true, 'admin' => true ); $results = localAPI ('OpenTicket', $postData, 'admin'); print_r ($results); This code will create an admin ticket via the admin account "admin" for client ID 1. 1 Quote Link to comment Share on other sites More sharing options...
Eduardo G. Posted October 30, 2020 Author Share Posted October 30, 2020 Thanks, @string I think I've see the problem: when I look at ticket list from the admin panel I see the Submitter column shows the client name, which is not the submitter. But then when I open that ticket from client area I see the sender is a Staff member. So I think it was warking before but admin panel was showing wrong submitter. 0 Quote Link to comment Share on other sites More sharing options...
string Posted October 30, 2020 Share Posted October 30, 2020 (edited) Yes, in WHMCS under version 8 it shows the client name on the ticket overview page. In version 8 it looks like here: Edited October 30, 2020 by string 0 Quote Link to comment Share on other sites More sharing options...
Eduardo G. Posted October 30, 2020 Author Share Posted October 30, 2020 Glad to see it's fixed in version 8 😄 0 Quote Link to comment Share on other sites More sharing options...
Trescpress Posted February 26, 2021 Share Posted February 26, 2021 Adding Paragraphs using md breaks the formatting. Is there a work around to format support emails properly to allow paragraphs? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.