Ticket ID and Ticket Number Mismatch

Moderator: crythias

Post Reply
nltui
Znuny newbie
Posts: 37
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Ticket ID and Ticket Number Mismatch

Post by nltui »

Our ticket number and id are different by 1 for some reason. Is there any way to safely fix this?

The reason I ask is that we are about to roll the ticketing system out to other departments, and it might cause confusion. If not, than we will just tell them to live with it. I don't care if it just affects old tickets.

MariaDB [znuny]> SELECT id, tn FROM ticket WHERE id = 72551;
+-------+--------+
| id | tn |
+-------+--------+
| 72551 | 072550 |
+-------+--------+
wurzel
Znuny guru
Posts: 3275
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Ticket ID and Ticket Number Mismatch

Post by wurzel »

Hi,

ticket id != ticket number.

the id is auto increment from SQL, ticket number is generated. In my system it looks like this

Code: Select all

+-------+------------------+
| id    | tn               |
+-------+------------------+
| 13406 | 2024102576000079 |
+-------+------------------+
1 row in set (0.001 sec)
As you can delete a ticket it might be different in all databases. Live with it 8)

best regards
Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply