Re: [rt-users] Set Subject in if/then clause

2012-02-02 Thread Giuseppe Sollazzo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/02/12 19:19, Kevin Falcone wrote: Guiseppe - for reference, the syntax Gerard gave you came from the fact that RT's templates are Text::Templates and you can read more about them on CPAN:

[rt-users] Set Subject in if/then clause

2012-02-01 Thread Giuseppe Sollazzo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to set up a different subject for different queues in the same template (autoreply). This doesn't seem to work: { if ($Ticket-QueueObj-Name eq 'Work Queue') { Subject: Helpdesk Job Logged: {$Ticket-Subject} Output this; } elsif

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Joe Harris
I am pretty sure you can define that on the queue edit screen. I set up different subject prefixes per queue when I created them. As long as it is a per queue difference and not changes within a queue based on something else. Someone correct me if I'm wrong. Sent from my mobile device. On

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Giuseppe Sollazzo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/02/12 12:03, Joe Harris wrote: I am pretty sure you can define that on the queue edit screen. I set up different subject prefixes per queue when I created them. As long as it is a per queue difference and not changes within a queue based on

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Gerard FENELON
Hi Giuseppe what is your definition of This doesn't seem to work ? what is the (bad) behaviour that you are seeing ? Does an email get sent or not ? What is its subject line and content ? Anything in the logs ? Gerard On 2012-02-01 12:03, Giuseppe Sollazzo wrote: Hi, I'm trying to set up a

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Giuseppe Sollazzo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/02/12 13:08, Gerard FENELON wrote: Hi Giuseppe what is your definition of This doesn't seem to work ? what is the (bad) behaviour that you are seeing ? Does an email get sent or not ? What is its subject line and content ? Anything in the

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Gerard FENELON
Try something like Subject: { if ($Ticket-QueueObj-Name eq 'Work Queue') { Helpdesk Job Logged: {$Ticket-Subject} Output this; } elsif ($Ticket-QueueObj-Name eq 'Task Queue') { Support Job Logged: {$Ticket-Subject} Output that; } else { Output other; } } In other words, your perl script should

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Giuseppe Sollazzo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/02/12 13:30, Gerard FENELON wrote: Try something like Subject: { if ($Ticket-QueueObj-Name eq 'Work Queue') { Helpdesk Job Logged: {$Ticket-Subject} Output this; } elsif ($Ticket-QueueObj-Name eq 'Task Queue') { Support Job Logged:

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Giuseppe Sollazzo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Gerard, many thanks - that worked. I really need to refresh my Perl... Cheers, Giuseppe On 01/02/12 13:49, Gerard FENELON wrote: I suspect my proposal is wrong Try instead Subject: { if ($Ticket-QueueObj-Name eq 'Work Queue') { Helpdesk Job

Re: [rt-users] Set Subject in if/then clause

2012-02-01 Thread Kevin Falcone
On Wed, Feb 01, 2012 at 01:55:34PM +, Giuseppe Sollazzo wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Gerard, many thanks - that worked. I really need to refresh my Perl... Cheers, Giuseppe On 01/02/12 13:49, Gerard FENELON wrote: I