I'm trying to add options to ticket source. In research in this forum, I find little info on how to do this that isn't years old. And, I find that osTickets has two different lists for the same field. When creating a new ticket, there are only three options. However, when changing the ticket source of an existing ticket, I get five choices.

I found the five options in class.ticket.php, but I haven't found where the three choices are in the code. Also, why is the same field using two different sets of data?

The class file and the db enum match all five sources. I'm still not finding where the three sources is coming from?


osTicket v1.12.2 // osTicket-1.12.2-Awesome-101
PHP 7.2.21 // MySQL 10.2.26 // Apache web server

I've now dug through everything. Can't find the three-sources... sigh

Ticket sources are in the database. Defined in the osTicket table ost_tickets

Yes, I know this. I show five in the db. But I only get THREE in the new ticket drop-down.

Correct.
API is reserved for API created tickets.
EMAIL is reserved for Email created tickets.

But when I add additional options here, they don't show up.

How do I add new options to this field?

You will probably have to edit the source files to make it work.

/include/staff/ticket-edit.inc.php
circa line 72-83

/include/staff/ticket-open.inc.php
circa line 126 - 145

/include/class.ticket.php
circa line 218-227

You would likely also have to add an entry to the language files so it knows how to translate it also.

Dang.

Would be great to just make this a 'list' like statues.

Write a Reply...