Kayako logo
How do I? Questions about how to do specific things in SupportSuite, eSupport and LiveResponse. Not for reporting problems.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
zheka Offline
New Member
 
Posts: 20
Join Date: Oct 2007
Zeroing ticket ID - 06-01-2008, 01:04 AM

Hi friends,

How would I zero the ID number of tickets to start the numeration from the very beginning. That means I have Ticket ID Type set to Sequential.

Eugene
   
Reply With Quote
  (#2) Old
Jamie Edwards Online
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,443
Join Date: Jan 2006
Location: United Kingdom
06-01-2008, 03:45 PM

Hi Eugene,

Under Admin CP -> Settings > Tickets, turn the following setting to "Sequential", as below.



Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
craigbrass Online
Senior Member
 
Posts: 5,752
Join Date: Jun 2005
Location: Cumbria, UK
06-01-2008, 03:48 PM

I don't think that is what he means Jamie. I think he is after having ticket ids like 000001015 which would be possible by modifying the templates a little wherever the ticket id is displayed.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#4) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 886
Join Date: May 2005
Location: Henderson, Nevada
06-01-2008, 04:26 PM

I think what he means is for example he has it at Sequential already and so it started at like 0000000001 but after time obviously has gotten up to say 000100038 I think now he wants to reset it back down too 0000000001 but I would see problems with this as it would then have issues with the very first tickets that where originally with that Ticket ID even if those old Tickets have been deleted.


Steve
Digital Mayhem, Inc.
AIM: Steve.Lawrence@Digital-Mayhem.com
MSN: Steve.Lawrence@Digital-Mayhem.com
GTALK: Steve.Lawrence@Digital-Mayhem.com
YAHOO: DigitalMayhem_Steve
SKYPE: DigitalMayhem_Steve

I'm Important
Posting & You
   
Reply With Quote
  (#5) Old
craigbrass Online
Senior Member
 
Posts: 5,752
Join Date: Jun 2005
Location: Cumbria, UK
06-01-2008, 04:49 PM

Well if he has deleted the existing tickets, he could then just modify the MySQL incrementation value for that field using phpMyAdmin.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#6) Old
zheka Offline
New Member
 
Posts: 20
Join Date: Oct 2007
06-01-2008, 08:24 PM

It's pretty nice hear the wise voice, thanks guy.
Indeed, I'd like to start the whole SupportSuite history from scratch without reinstalling it and have ticket numbers starting with 000001. All existed tickets have been deleted and I made sure the table swtickets is empty. Then I submitted a new ticket but it still came up with a high value ID. I even tried to manually change the ticketid value in this table to 1 and it showed as ticket #1 indeed but the next one is created with an old high value ID.
Craigbrass suggested to modify the incrementation for ticketid. But how should I modify it, it is set to auto_increment. Should I just remove this parameter?
   
Reply With Quote
  (#7) Old
Jamie Edwards Online
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,443
Join Date: Jan 2006
Location: United Kingdom
06-01-2008, 08:26 PM

Hi Zheka,

No - you certainly should not as this would cause the system to break. MySQL remembers the 'last value' of it's last auto_increment. To flush this, you need to run the following query;

MySQL: Reset Auto Increament Number
Quote:
Problem One:
If I have entered 10 records, and deleted 9th, 10th records. The next auto increment value will be 11, not 9.

Solution:
Run a query: ALTER TABLE tablename AUTO_INCREMENT = 1
This will reset the next auto increment value to current largest value in the auto increment column + 1. So, the auto increment value of next inserted record will start from 9.
Or, seen as though you are starting afresh you can run this query;
Code:
TRUNCATE TABLE TABLENAME
Which will empty the table as well as reset the auto increment value.

If you are wanting to start afresh, I would strongly recommend starting with a new install so that you can be sure housekeeping is clean and in good order


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#8) Old
craigbrass Online
Senior Member
 
Posts: 5,752
Join Date: Jun 2005
Location: Cumbria, UK
06-01-2008, 08:39 PM

Didn't realise there was a MySQL query to automatically find what it now should be. Thanks for sharing that Jamie.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#9) Old
zheka Offline
New Member
 
Posts: 20
Join Date: Oct 2007
06-01-2008, 08:59 PM

That worked! Thanks a lot, Jamie!
   
Reply With Quote
  (#10) Old
dellington Offline
New Member
 
Posts: 10
Join Date: Feb 2008
14-02-2008, 04:40 PM

I want to do something along these same lines -- we are moving our support tracking form another system to Support Suite. Currently in our old system we use sequential numbering and we are up to about 3200. We'd like ot start in SS with number 4000 so we do not repeat numbers from the old system. We have a hosted version so I am not sure where to go to run mySQL commands. I know how to use phpMyAdmin, can we access our database that way?
   
Reply With Quote
Reply

Tags
ticket, zeroing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Create links in ticket emails that auto login and go to the ticket khoffman Modifications & Addon Releases 42 29-11-2008 12:54 AM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM
connection problem inteltechs InstaAlert 5 27-04-2006 01:23 AM
eSupport v2.2 RC1 Available in Members Area Varun Shoor Technical Chat 1 17-05-2004 02:28 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47