Easy...sorta
I just did this, but you need to either make a new table in mysql or add a column to OS Ticket's ticket table. I chose to create my own table.
In include/staff/newticket.php around line 42 I inserted a new row into their form/table.
KMC
<tr>
<td align="left"><b>Account #:</b></td>
<td>
<input type="text" name="kmc_account_number" size="25" value="">
</td>
</tr>
<tr>
<td align="left"><b>Website:</b></td>
<td>
<input type="text" name="kmc_domain" size="50" value="">
</td>
</tr>
END KMC
Then you have to receive it when the form is processed...
In include/class.ticket.php around line 1367
after
//TODO: recover from postMessage error??
insert to receive the variable form data and then do what you will with it...
$kmc_email=$var; // Gets email from form field
$kmc_filenumber=$_POST; // Grabs input from Filenumber field on form
$kmc_domain=$_POST; // Gets domain from form
$kmc_ticket_attach=kmc_try_to_attach($kmc_filenumber, $kmc_email, $kmc_domain, $id, $extId);
Here I get the variables and then use them to run my custom function kmc_ticket_attach that attaches this OS Ticket to our database of customers.
Let me know if you have any more q's!