
Hi, where can I define, how the ticket number is composed? In Config.pm I found the System ID. The rest of the number is an increasing count. Can I define something like it was in STTS, eg. Date, System IT, daily count? TIA, Stefan -- Stefan Schmidt Email: jsj@jsj.dyndns.org jsj@exsuse.de Bremen jsj-hb@t-online.de s.schmidt@iu-bremen.de

Hi Stefan, On Sat, Jun 22, 2002 at 10:11:45PM +0200, Stefan Schmidt wrote:
where can I define, how the ticket number is composed? In Config.pm I found the System ID. The rest of the number is an increasing count. Can I define something like it was in STTS, eg. Date, System IT, daily count?
Yes, but just in the current CVS. ,-) I added three types of ticket numbers Kernel::System::Ticket::Number::AutoIncrement (default) ------------------------------------------------------- auto increment ticket numbers "SystemID.Counter" like 1010138 and 1010139. Kernel::System::Ticket::Number::Date ------------------------------------ ticket numbers with date "Year.Month.Day.SystemID.Counter" like 200206231010138 and 200206231010139. Kernel::System::Ticket::Number::Random -------------------------------------- random ticket numbers "SystemID.Random" like 100057866352 and 103745394596. Set "$Self->{TicketNumberGenerator}" in Kernel/Config.pm for the wanted module (if "$Self->{TicketNumberGenerator}" isn't in Config.pm, "AutoIncrement" is used). You can also create a new module. The module needs just two funktions (the whole abstraction): * To generate a new ticket number "CreateTicketNr()" * To get a ticket number by string "GetTNByString()" Example: http://otrs.org/cgi-bin/cvsweb.cgi/otrs/Kernel/System/Ticket/Number/Random.p... Comments?
Stefan
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Noch 83 Tage bis zum Gäubodenvolksfest! ;-)

Martin, incredible. On Sunday 23 June 2002 12:25, Martin Edenhofer wrote:
On Sat, Jun 22, 2002 at 10:11:45PM +0200, Stefan Schmidt wrote:
where can I define, how the ticket number is composed? In Config.pm I found the System ID. The rest of the number is an increasing count. Can I define something like it was in STTS, eg. Date, System IT, daily count?
Yes, but just in the current CVS. ,-)
Wow.
I added three types of ticket numbers Kernel::System::Ticket::Number::AutoIncrement (default) Kernel::System::Ticket::Number::Date Kernel::System::Ticket::Number::Random
I will try them tomorrow.
Comments?
Not yet ;-)
Martin
Stefan -- Stefan Schmidt Email: jsj@jsj.dyndns.org jsj@exsuse.de Bremen jsj-hb@t-online.de s.schmidt@iu-bremen.de

On Sunday 23 June 2002 13:27, Stefan Schmidt wrote:
On Sunday 23 June 2002 12:25, Martin Edenhofer wrote:
I added three types of ticket numbers Kernel::System::Ticket::Number::AutoIncrement (default) Kernel::System::Ticket::Number::Date Kernel::System::Ticket::Number::Random
I will try them tomorrow.
Comments?
Not yet ;-)
Now I have: After updating PostMaster.pm, Ticket.pm and the 3 files from the new directory Ticket/Number it works like charm! Thank you, Stefan -- Stefan Schmidt Email: jsj@jsj.dyndns.org jsj@exsuse.de Bremen jsj-hb@t-online.de s.schmidt@iu-bremen.de
participants (2)
-
Martin Edenhofer
-
Stefan Schmidt