[rt-users] Ticket tracking and subject changes?

Ruslan U. Zakirov cubic at acronis.ru
Fri Oct 24 11:56:12 EDT 2003


Jesse Vincent wrote:
>>Jesse, can confirm that next changes don't break anything?
>>
>>I'm going to do next steps:
>>1) stop rt, mail... almost all.
>>2) setup procmail filter that change Subject tag
>>from [xxx #<id>] to [yyy #<id>].
>>3) change RT::rtname from xxx to yyy.
>>
>>After greping of RT::rtname I think that this enought to change 
>>RT::rtname and to keep tracking of tickets which exist. Am I right?
> 
> 
> I believe that to be the case. In the past wehn I've done it, I just
> hand-hacked the ticket id parser to allow the old xxx for a while.
I do believe too. If something will go wrong just hack for sometime.

> I think that for 3.2 setting up an rtname regexp is probably the right
> answer.
> 
> 	Jesse

It's easyly can be done in RT 3.0.x with backwards compatibility.
With emplementing callback that RT use when ($RT::rtname = re//; and we 
have to past $RT::rtname somewhere). In case $RT::rtname just scalar use it.
In ~perl:
my $rtname;
if (we need change something to RT::rtname) {
	
	If ($RT::rtname =~ regexp) {
		$rtname = RT::rtname_callback($TicketObj);
	} else {
		$rtname = $RT::rtname;
	}
}

		Good luck. Spasibo za horoshi product :). Ruslan.




More information about the rt-users mailing list