Adding Ticket statuses
Moderator: mkoch227
-
- Posts: 6
- Joined: Thu Feb 28, 2013 5:47 pm
Adding Ticket statuses
Hello,
Is it possible to add ticket status in HESK? I know there are the default ones (new, waiting reply, on hold, etc), but can you add custom ones at all?
Regards,
Dominic
Is it possible to add ticket status in HESK? I know there are the default ones (new, waiting reply, on hold, etc), but can you add custom ones at all?
Regards,
Dominic
Re: Adding Ticket statuses
Not at the moment, you would need to edit a lot of code in a lot of places to do that.
My suggestion would be to change names of "On Hold" and "In Progress" to the status you need and use that (because these two statuses are never assigned by HESK, just by staff).
My suggestion would be to change names of "On Hold" and "In Progress" to the status you need and use that (because these two statuses are never assigned by HESK, just by staff).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Adding Ticket statuses
Updated 1/10/2014
Here is a quick text document I have created for creating additional statuses in HESK (there's about 10-12 files you need to update
)
Unfortunately, I accidentally deleted the file off of my web server
Here is a quick text document I have created for creating additional statuses in HESK (there's about 10-12 files you need to update

Unfortunately, I accidentally deleted the file off of my web server

Last edited by mkoch227 on Wed Jun 11, 2014 12:41 pm, edited 4 times in total.
Re: Adding Ticket statuses
Not a problem. After adding a couple new statuses, I wrote up the cheat sheet, cause there was no way for me to remember all of thatsteve wrote:Nice cheat sheet. Thanks!

Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
-
- Posts: 142
- Joined: Sat Jun 22, 2013 9:24 pm
Re: Adding Ticket statuses
Hi,
Is there a way to post http://kandbconsult.com/mkoch/customHESKstatus.txt again. The link seems to be broken.
Thanks
Is there a way to post http://kandbconsult.com/mkoch/customHESKstatus.txt again. The link seems to be broken.
Thanks

Re: Adding Ticket statuses
I updated the link in the first post of the thread. Sorry about that!
Please note that I haven't been able to test this on the lastest version of HESK. Please let me know if everything works properly
Please note that I haven't been able to test this on the lastest version of HESK. Please let me know if everything works properly

Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
-
- Posts: 142
- Joined: Sat Jun 22, 2013 9:24 pm
Re: Adding Ticket statuses
Ok, I have version 2.5.0.
The status shows if I am in a ticket. However if I go to the admin page (Home) I see the menu bar and below words Open tickets. The rest is blank.
I checked if I did embed all correctly but I did not find anything that would be wrong
I followed exactly your directions. Like I said. If I am in a ticket itself I can change the status and I can see that it worked, but support/admin or home is blank.
Please help or suggest

The status shows if I am in a ticket. However if I go to the admin page (Home) I see the menu bar and below words Open tickets. The rest is blank.
I checked if I did embed all correctly but I did not find anything that would be wrong

Please help or suggest


-
- Posts: 142
- Joined: Sat Jun 22, 2013 9:24 pm
Re: Adding Ticket statuses
Ok, I found out (ofcourse
) I did something wrong
I do not understand this part (It was causing the issue. Can you be a bit more exact???
I have not implemented this part now and it seems to work
***************************
inc/print_tickets.inc.php
***************************
Under line 90: "if ($tmp == 0 || ($tmp == 5 && !isset($status[3])) )". Change 5 to #.
then it will read "if ($tmp ==0 || ($tmp == 6 && !isset($status[3])) )"
Thanks for all you do

I do not understand this part (It was causing the issue. Can you be a bit more exact???
I have not implemented this part now and it seems to work
***************************
inc/print_tickets.inc.php
***************************
Under line 90: "if ($tmp == 0 || ($tmp == 5 && !isset($status[3])) )". Change 5 to #.
then it will read "if ($tmp ==0 || ($tmp == 6 && !isset($status[3])) )"
Thanks for all you do
-
- Posts: 142
- Joined: Sat Jun 22, 2013 9:24 pm
Re: Adding Ticket statuses
Question:
***************************
inc/print_tickets.inc.php
***************************
Line 65:
$possible_status = array(
0 => 'NEW',
1 => 'WAITING REPLY',
2 => 'REPLIED',
3 => 'RESOLVED (CLOSED)',
4 => 'IN PROGRESS',
5 => 'ON HOLD',
);
Under the last line in the array, type in the following: # (the same number added to the database) => 'VOID' (or the name you wish to use.
i.e. after adding this status, the line should read (in this case) "6 => 'VOID'," (w/out quotes)
Under line 90: "if ($tmp == 0 || ($tmp == 5 && !isset($status[3])) )". Change 5 to #.
then it will read "if ($tmp ==0 || ($tmp == 6 && !isset($status[3])) )"
Was tis 1 task or 2 tasks???
***************************
inc/print_tickets.inc.php
***************************
Line 65:
$possible_status = array(
0 => 'NEW',
1 => 'WAITING REPLY',
2 => 'REPLIED',
3 => 'RESOLVED (CLOSED)',
4 => 'IN PROGRESS',
5 => 'ON HOLD',
);
Under the last line in the array, type in the following: # (the same number added to the database) => 'VOID' (or the name you wish to use.
i.e. after adding this status, the line should read (in this case) "6 => 'VOID'," (w/out quotes)
Under line 90: "if ($tmp == 0 || ($tmp == 5 && !isset($status[3])) )". Change 5 to #.
then it will read "if ($tmp ==0 || ($tmp == 6 && !isset($status[3])) )"
Was tis 1 task or 2 tasks???
Re: Adding Ticket statuses
Line 90 should read exactly:
where ### is the highest value on your status array (in your case, 6)
Code: Select all
if ($tmp ==0 || ($tmp == ### && !isset($status[3])) )
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
-
- Posts: 7
- Joined: Thu Jul 18, 2013 7:38 am
Re: Adding Ticket statuses
OK I also followed these instructions thoroughly but no luck. 
Everything seemed to be working BUT: when I change to the new status (6) the ticket doesn't actually get this status. It always ends up on status 5, 'on hold'.
Any idea what I did wrongly? We are running -
HESK version: 2.4.2
PHP version: 5.3.10-1ubuntu3.6
MySQL version: 5.5.31-0ubuntu0.12.04.2
Any help would be appreciated.
cheers
/William

Everything seemed to be working BUT: when I change to the new status (6) the ticket doesn't actually get this status. It always ends up on status 5, 'on hold'.
Any idea what I did wrongly? We are running -
HESK version: 2.4.2
PHP version: 5.3.10-1ubuntu3.6
MySQL version: 5.5.31-0ubuntu0.12.04.2
Any help would be appreciated.
cheers
/William
-
- Posts: 7
- Joined: Thu Jul 18, 2013 7:38 am
Re: Adding Ticket statuses
And of course I found it out now just after posting that other reply. I had only changed the structure of hesk_status but not the status field in hesk_tickets. So failed at step 1..
Thanks mkoch227 for your guidance.
/W

/W
Re: Adding Ticket statuses
I have updated the custom status cheat sheet to reflect changes in HESK 2.5.2. Files updated:
You can view the cheat sheet several posts above this one.
Code: Select all
admin/export.php
Mike, Lead Developer of
HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
-
- Posts: 7
- Joined: Thu May 29, 2014 7:06 pm
Re: Adding Ticket statuses
Hi mkoch227 and everybody!
I read all the replies and i guess the "answer" i need is here! Thank you all!
By the way, i did not found the "cheat sheet". Does anybody have it?
Thanks again!
I read all the replies and i guess the "answer" i need is here! Thank you all!
By the way, i did not found the "cheat sheet". Does anybody have it?
Thanks again!