I recently upgraded to v1.10 from v1.8.In the previous version I was able to add additional columns to the man ticket list view.I was able to add a custom form field for post code, and that I can still do, but is done as a call to a custom PHP which queries the database to extract the relevant info from tables for the given ticket ID. This obviously slows down the page loading, but I can look at tuning later.Another thing I was able to do fairly easily in the older version was add the topic to the return data and present that in the list.In the  upload/include/staff/tickets.inc.php script, this item was in the SELECT column list:.' ,IF(ptopic.topic_pid IS NULL, topic.topic, CONCAT_WS(" / ", ptopic.topic, topic.topic)) as helptopic 'So in the loop that prints out each ticket in teh list I simply added: <td align="center" ><?php echo $row; ?></td>But, the new version, this is completely esoteric/abstracted, making it extremely difficult to figure out how to re-apply this mod, or go about showing this data (other than doing what I did to show the post code items, but this would really slow it down).I was also excited to see that custom ticket statuses can be defined, but how to include this in the ticket list?

Hey,Hopefully the custom queue feature will be included in the rumored 1.11 release, which will make this much easier: https://github.com/greezybacon/osTicket-1.8/tree/feature/custom-queuesBut if you want to do it hard coded youGo here: https://github.com/osTicket/osTicket/blob/develop/include/staff/tickets.inc.php#L75Add'topic' => array(            'width' => '16%',            'heading' => __('Help Topic'),            'sort_col'  => 'topic__topic',            ),Go here: https://github.com/osTicket/osTicket/blob/develop/include/staff/tickets.inc.php#L377At the end add, 'topic__topic'Go here: https://github.com/osTicket/osTicket/blob/develop/include/staff/tickets.inc.php#L595Add this<td nowrap><span class="truncate" style="max-width: 169px"><?php                    echo Format:($T); ?></span></td>Go here: https://github.com/osTicket/osTicket/blob/develop/include/staff/tickets.inc.php#L605Update colspan from 7 to 8

Wonderful!!! We have our topics back.Thank you.

5 months later

Hi, i added the codes and successfully create the help topic column but then the ticket list are missing. is there any codes i need to modify? thanks

2 months later

Hi,I had the same problem.There are two underscores between topic and topic.

2 months later

thank you so much Micke1101 ..works like a charm!quick question:where can i adjust the font size ?...im adding 3 columns from a personalized form but its starting to be a little long for the size of the screen ;)

Write a Reply...