Hi,
I have last version osTicket and I have customized agents view of the tikets. Now I would like to customize end user Tikets view in order to add/modify columns that is show. By default are 5. Who can I add or modify the columns? Have I to change the source code or is is possible to do it in Administration Panel like I have done witht agents?

Thankas a lot.
Chema

    Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.

    Environment details? (see Admin panel -> Dashboard -> Information)

    ChemaMusgrave I have last version osTicket

    This does not convey what version you are running since two versions are released simultaneously. (example that last release was 1.14.6 and 1.15.2).

    ChemaMusgrave Who can I add or modify the columns?

    For the Agent Ticket list columns you can go to Admin panel -> Settings -> Tickets and click on the Queues tab.

    For the User Agent list you would currently need to alter the code manually.
    I think that would be done here: /include/client/tickets.inc.php

    3 months later

    dear @ChemaMusgrave
    if you managed to modify the files to reach the goal of the request I would be very grateful if you shared it all 😉 😃

    2 years later

    I see that this is the code in /var/www/html/osticket/upload/include/client/tickets.inc.php
    Which part should be touched and which variables can be used to customize the view?

    <table id="ticketTable" width="800" border="0" cellspacing="0" cellpadding="0">
        <thead>
            <tr>
                <th nowrap>
                    <a href="tickets.php?sort=ID&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="<?php echo sprintf('%s %s', __('Sort By'), __('Ticket ID')); ?>"><?php echo __('Ticket #');?>&nbsp;<i class="icon-sort"></i></a>
                </th>
                <th width="120">
                    <a href="tickets.php?sort=date&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="<?php echo sprintf('%s %s', __('Sort By'), __('Date')); ?>"><?php echo __('Create Date');?>&nbsp;<i class="icon-sort"></i></a>
                </th>
                <th width="100">
                    <a href="tickets.php?sort=status&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="<?php echo sprintf('%s %s', __('Sort By'), __('Status')); ?>"><?php echo __('Status');?>&nbsp;<i class="icon-sort"></i></a>
                </th>
                <th width="320">
                    <a href="tickets.php?sort=subject&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="<?php echo sprintf('%s %s', __('Sort By'), __('Subject')); ?>"><?php echo __('Subject');?>&nbsp;<i class="icon-sort"></i></a>
                </th>
                <th width="120">
                    <a href="tickets.php?sort=dept&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="<?php echo sprintf('%s %s', __('Sort By'), __('Department')); ?>"><?php echo __('Department');?>&nbsp;<i class="icon-sort"></i></a>
                </th>
            </tr>
        </thead>
        <tbody>
        <?php
         $subject_field = TicketForm::objects()->one()->getField('subject');
         $defaultDept=Dept::getDefaultDeptName(); //Default public dept.
         if ($tickets->exists(true)) {
             foreach ($tickets as $T) {
                $dept = $T['dept__ispublic']
                    ? Dept::getLocalById($T['dept_id'], 'name', $T['dept__name'])
                    : $defaultDept;
                $subject = $subject_field->display(
                    $subject_field->to_php($T['cdata__subject']) ?: $T['cdata__subject']
                );
                $status = TicketStatus::getLocalById($T['status_id'], 'value', $T['status__name']);
                if (false) // XXX: Reimplement attachment count support
                    $subject.='  &nbsp;&nbsp;<span class="Icon file"></span>';
    
                $ticketNumber=$T['number'];
                if($T['isanswered'] && !strcasecmp($T['status__state'], 'open')) {
                    $subject="<b>$subject</b>";
                    $ticketNumber="<b>$ticketNumber</b>";
                }
                $thisclient->getId() != $T['user_id'] ? $isCollab = true : $isCollab = false;
                ?>
                <tr id="<?php echo $T['ticket_id']; ?>">
                    <td>
                    <a class="Icon <?php echo strtolower($T['source']); ?>Ticket" title="<?php echo $T['user__default_email__address']; ?>"
                        href="tickets.php?id=<?php echo $T['ticket_id']; ?>"><?php echo $ticketNumber; ?></a>
                    </td>
                    <td><?php echo Format::date($T['created']); ?></td>
                    <td><?php echo $status; ?></td>
                    <td>
                      <?php if ($isCollab) {?>
                        <div style="max-height: 1.2em; max-width: 320px;" class="link truncate" href="tickets.php?id=<?php echo $T['ticket_id']; ?>"><i class="icon-group"></i> <?php echo $subject; ?></div>
                      <?php } else {?>
                        <div style="max-height: 1.2em; max-width: 320px;" class="link truncate" href="tickets.php?id=<?php echo $T['ticket_id']; ?>"><?php echo $subject; ?></div>
                        <?php } ?>
                    </td>
                    <td><span class="truncate"><?php echo $dept; ?></span></td>
                </tr>
            <?php
            }
    
         } else {
             echo '<tr><td colspan="5">'.__('Your query did not match any records').'</td></tr>';
         }
        ?>
        </tbody>
    </table>

      fzetafs

      This post is from 2 years ago. Please do not revive old, dead threads.

      Cheers.

      Write a Reply...