
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! ;-)