I am looking to add a 'status' column on the staff and client ticket lists.How can this be done?

This thread ought to point you in the right direction:http://forum.osticket.com/d/discussion//a-better-ticket-list

4 days later

Mod - Add ticket status to the Agent panel ticket list  - OSticket 1.9.12File ../include/staff/tickets.inc.php     Step 1. Starts around original Line 379  - Add the following in RED<th width="100"><a <?php echo $status_sort; ?> href="tickets.php?sort=status&order=<?php echo $negorder;?><?php echo $qstr; ?>"title="<?php echo sprintf(__('Sort by %s %s'), __('Status'), __($negorder)); ?>"><?php echo __('Status');?></a></th><?phpif($search && !$status) { ?> Step 2. Starts around original Line 485 - Add <td...  in RED<td nowrap>&nbsp;<?php echo Format:(Format:($row, 22, strpos($row, '@'))); ?>&nbsp;</td><td nowrap>&nbsp;<?php echo $row; ?>&nbsp;</td><?php Step 3. Starts around original Line 507  - change the colspan="7" to "8" in RED<tr><td colspan="8"><?php if($res && $num && $thisstaff->canManageTickets()){ ?><?php echo __('Select');?>:&nbsp;<a id="selectAll" href="#ckb"><?php echo __('All');?></a>&nbsp;&nbsp;<a id="selectNone" href="#ckb"><?php echo __('None');?></a>&nbsp;&nbsp;<a id="selectToggle" href="#ckb"><?php echo __('Toggle');?></a>&nbsp;&nbsp;<?php }else{echo '<i>';echo $ferror?Format:($ferror)('Query returned 0 results.');echo '</i>';} ?></td></tr>

Great. Works fantastically. Column shows up on staff controll panel and orders when clicking header.Now how do I get colours like the priority column?

Hello!  I am new to using the OS Ticketing System.  I know that I am using version 1.9.12.  and I have been assigned to the task of adding a "status" column so my colleagues will know where we are at with handling a specific task. Are the directions listed applicable to the version I am using?  I am not a developer so I will be passing the information on to someone who is, I thought these instructions were helpful but not sure if it was the right set for the version I'm using.    Thanks! Emily 

Yes, that is the same version I made the changes in.

Hello! Ok good to know.  Thank you for the information.  I appreciate it! Emily

Small addition; to center the text in the status column:Replace (in previous step 2)<td nowrap>&nbsp;<?php echo $row; ?>&nbsp;</td>with<td style="text-align;" nowrap>&nbsp;<?php echo $row; ?>&nbsp;</td>

Also to do header alignment; in prvious step 1:replace<th width="100">with <th style="text-align;"  width="100">

ok.  I will add these steps to my instructions.  Thanks for including me!  I appreciate it.  

a month later

Can you please share your tickets.inc.php file please?

Write a Reply...