Change and Workorder number scheme

Moderator: crythias

Locked
ckjkennedy
Znuny newbie
Posts: 7
Joined: 20 Apr 2010, 18:21
Znuny Version: 2.4.7

Change and Workorder number scheme

Post by ckjkennedy »

I can't seem to find anywhere a place to change the number generator. I know in tickets it is under Core::Ticket as Ticket::NumberGenerator but I can't find it for change management. I checked in Core::ITSMWorkOrder and Core::ITSMChange. The hooks and counter log are there but nothing about changing to autoincrement.

Its pretty rough for us to have a change # of 2010042810000019

Thanks,

Chris
ckjkennedy
Znuny newbie
Posts: 7
Joined: 20 Apr 2010, 18:21
Znuny Version: 2.4.7

Re: Change and Workorder number scheme

Post by ckjkennedy »

Has anyone found a workaround or hack for this?
ckjkennedy
Znuny newbie
Posts: 7
Joined: 20 Apr 2010, 18:21
Znuny Version: 2.4.7

Re: Change and Workorder number scheme

Post by ckjkennedy »

I think I found the answer. In the file /opt/otrs/Kernel/System/ITSMChange.pm you can remove the Year, Month, Day from the $ChangeNumber variable.

Code: Select all

        # create new change number
        #
        # my $ChangeNumber = $Year . $Month . $Day . $SystemID . $Count;
        #
        # modified to remove date from change number
        my $ChangeNumber = $SystemID . $Count;
Just pull the $Year . $Month . $Day . from the ChangeNumber line.

Now the question, will this break anything else?
Locked