Page 1 of 1
Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Tue Jun 10, 2014 2:50 pm
by ZePenguin
Hi all,
As the title goes, could someone point me how I could make the tickets list (admin view) to show additional columns such as 'Category' and 'Assigned To' please? I tried searching in the forum but they are mainly for the old ones.
FYI, I am using the latest HESK version with the latest HESK UI theme.
Thanks in advance!

Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Wed Jun 11, 2014 2:04 pm
by alcazar
As for the category, just use "more options" and group the tickets by category, then you'll see it.
As for the "owner", see this thread, first post on page 2.
->
viewtopic.php?f=14&t=4571&start=15#p20977
Note: The mod is for standard hesk, modified versions can have different codes or on different places.
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Tue Jun 17, 2014 6:13 am
by lupolo
MOD to see the category name directly in the ticket view (tested with 2.5.3)
Open: ticket_list.inc.php
Paste before
-->
Code: Select all
$ticket['category'] = $hesk_settings['categories'][$ticket['category']];
Paste before:
Code: Select all
<td><a href="admin_ticket.php?track=$ticket[trackid]&Refresh=$random">$ticket[trackid]</a></td>
-->
Code: Select all
<td class="$color">$ticket[category]</td>
Paste before:
Code: Select all
<th><a href="<?php echo $href . '?' . $query . $sort_possible['trackid'] . '&sort='; ?>trackid"><?php echo $hesklang['trackID']; ?></a></th>
-->
Code: Select all
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['category'] . '&sort='; ?>category"><?php echo $hesklang['category']; ?></a></th>
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Wed Jun 18, 2014 8:48 am
by bastiaan.c
Hi lupolo,
Thanks for this MOD. This gave me an idea.
I have made a custom field "Due Date"
Is it possible to show that field in that position?
That would be awesome

Thanks for all you do.
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Wed Jun 18, 2014 9:36 am
by lupolo
bastiaan.c wrote:Hi lupolo,
Thanks for this MOD. This gave me an idea.
I have made a custom field "Due Date"
Is it possible to show that field in that position?
That would be awesome

Thanks for all you do.
I think you must replace the "
category" with "
custom1" if its your custom field.
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Wed Jun 18, 2014 10:06 am
by bastiaan.c
Thanks, IT WORRRRRRRKKKKKSSSSSSS!!!!

Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Sat Jun 21, 2014 9:10 am
by ZePenguin
lupolo wrote:MOD to see the category name directly in the ticket view (tested with 2.5.3)
Open: ticket_list.inc.php
Paste before
-->
Code: Select all
$ticket['category'] = $hesk_settings['categories'][$ticket['category']];
Paste before:
Code: Select all
<td><a href="admin_ticket.php?track=$ticket[trackid]&Refresh=$random">$ticket[trackid]</a></td>
-->
Code: Select all
<td class="$color">$ticket[category]</td>
Paste before:
Code: Select all
<th><a href="<?php echo $href . '?' . $query . $sort_possible['trackid'] . '&sort='; ?>trackid"><?php echo $hesklang['trackID']; ?></a></th>
-->
Code: Select all
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['category'] . '&sort='; ?>category"><?php echo $hesklang['category']; ?></a></th>
Works like a charm. Thank you so much!!

Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Sat Jun 21, 2014 9:16 am
by ZePenguin
alcazar wrote:As for the category, just use "more options" and group the tickets by category, then you'll see it.
As for the "owner", see this thread, first post on page 2.
->
viewtopic.php?f=14&t=4571&start=15#p20977
Note: The mod is for standard hesk, modified versions can have different codes or on different places.
Thanks for the owner mod, I edited it to accommodate my version and it works great!

Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Thu Feb 19, 2015 12:09 pm
by gurdain
Sorry, I've done the above with my custom19 field and although the column shows up....the contents are empty
I replaced every instance of category with custom19 after pasting the new lines in the correct places:
$ticket['custom19'] = $hesk_settings['custom19'][$ticket['custom19']];
<td class="$color">$ticket[custom19]</td>
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['custom19'] . '&sort='; ?>custom19"><?php echo $hesklang['custom19']; ?></a></th>
These are the three lines amended by me....have I made a mistake?
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Thu Feb 19, 2015 3:25 pm
by Klemen
My suggestion is to wait just few more days as HESK 2.6.0 will be released - it will have an easy built-in way to add any field to the main page columns.
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Fri Feb 20, 2015 12:45 am
by gurdain
Ok eagerly awaiting the update
Will there be a unified changes list version?
I've made soooo many changes to the core, I've been upgrading using the changes file for the last 4 versions
Custom statuses, custom css, custom columns, disabling customer notifications, custom language entries and notifications etc.
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Fri Feb 20, 2015 12:46 am
by gurdain
Sorry one more thing....can the new hesk provide a ticket history for one customer....
Lets say
joebloggs@gmail.com emails 10 times over a year....can i click on his name and see all his enquiries....kind of like a crm....
Re: Tickets List: Adding 'Category' and 'Assigned To' Column
Posted: Fri Feb 20, 2015 7:57 am
by Klemen
To track changes you make and easily apply them to a new version of HESK you should use versioning software such as Subversion or Git. It's easy to generate a diff file, but so many changes (upgrading 2.5.5 to 2.6.0) take a lot of work to apply manually.
You can view the history by searching tickets by email (admin panel > find tickets form)