Tickets List: Adding 'Category' and 'Assigned To' Column

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
ZePenguin
Posts: 5
Joined: Tue Jun 10, 2014 2:36 pm

Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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! :)
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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.
Alcazar
(nach Diktat spazierengegangen)
lupolo
Posts: 214
Joined: Mon Apr 20, 2009 2:12 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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

echo <<<EOC
-->

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>
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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.
lupolo
Posts: 214
Joined: Mon Apr 20, 2009 2:12 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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.
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post by bastiaan.c »

Thanks, IT WORRRRRRRKKKKKSSSSSSS!!!!
:D :!:
ZePenguin
Posts: 5
Joined: Tue Jun 10, 2014 2:36 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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

echo <<<EOC
-->

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!! :)
ZePenguin
Posts: 5
Joined: Tue Jun 10, 2014 2:36 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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! :)
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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?
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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.
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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....
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Tickets List: Adding 'Category' and 'Assigned To' Column

Post 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)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply