Problems with a subject line in a template

All,
I created a new templete to be used for my OnCreate
AutoreplyToRequestors scrip, but i’m having problems with the Subject
line. I can’t get it to not place [{$rtname} #{$Ticket->id()}] in the
subject line.

For example:
I want to have the subject to be formated as follows:Subject: Re: My Server is down [SERVERCITY-9]

So in my template i have:
Subject: Re: {$Ticket->Subject()} [{$rtname}-{$Ticket->id()}]

However it always comes out as:
Subject: [SERVERCITY #9] Re: My Server is down [SERVERCITY-9]

So it appears to be adding [{$rtname} #{$Ticket->id()}] in to make it:
Subject: [{$rtname} #{$Ticket->id()}] Re: {$Ticket->Subject()} [{$rtname}-{$Ticket->id()}]

Any ideas on what i might be doing wrong and how i can fix it?

Thanks
Adam Taylor
Servercity Inc.

RT always puts a ticket ID in ticket related correspondence. you’ll
want to hack SendEmail to disable that…though I’m not sure
what use case would lead to you wanting to do so. You can get the tag
at the end by using a template like this:

All,
I created a new templete to be used for my OnCreate
AutoreplyToRequestors scrip, but i’m having problems with the Subject
line. I can’t get it to not place [{$rtname} #{$Ticket->id()}] in the
subject line.

For example:
I want to have the subject to be formated as follows:
Subject: Re: My Server is down [SERVERCITY-9]

So in my template i have:
Subject: Re: {$Ticket->Subject()} [{$rtname}-{$Ticket->id()}]

However it always comes out as:
Subject: [SERVERCITY #9] Re: My Server is down [SERVERCITY-9]

So it appears to be adding [{$rtname} #{$Ticket->id()}] in to make it:
Subject: [{$rtname} #{$Ticket->id()}] Re: {$Ticket->Subject()} [{$rtname}-{$Ticket->id()}]

Any ideas on what i might be doing wrong and how i can fix it?

Thanks
Adam Taylor
Servercity Inc.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.