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

Joe Harris drey111 at gmail.com
Wed Feb 1 07:03:21 EST 2012


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 Feb 1, 2012, at 6:03 AM, Giuseppe Sollazzo <gsollazz at sgul.ac.uk> wrote:

> 
> -----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 ($Ticket->QueueObj->Name eq 'Task Queue') {
> Subject: Support Job Logged: {$Ticket->Subject}
> "Output that";
> }
> else {
> "Output other";
> }
> }
> 
> Is there a way to get this work?
> 
> Thanks,
> Giuseppe
> 
> - -- 
> ____________________________________
> 
> Giuseppe Sollazzo
> Senior Systems Analyst
> Computing Services
> Information Services
> St. George's, University Of London
> Cranmer Terrace
> London SW17 0RE
> 
> Email: gsollazz at sgul.ac.uk
> Direct Dial: +44 20 8725 5160
> Fax: +44 20 8725 3583
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQEcBAEBAgAGBQJPKRwCAAoJEAqigArPBfJXFCwH/iHe/oMnhx4fUV3AT4r55VFM
> PZHTLycb7mgsG1Nd4N0aIV3EQoGLIXe2YH1GaJIHLbs58q49r/fhzghjRYSGAYDt
> byk1NZGSXbItHwKM5D/cHX6xp/4SYDEeybtgCRbYKI51WsGIc7pX71TRjqQfNspv
> I5t4Pniq8VweKtl6y46eJiZK2cUVYTFmEy51xd32R+p1i5quw4BXV/oAWhC27+AT
> TlsNCnGye8BUD7NA0GAcaGzKCyKnMIJDbNm9ye14aEr6D/5+QXD2FoTxldI9EX7p
> qCUOYC+g4o+rBihSpEK5dUH4pJ3wbidBfI1plMLopkTFLI4BSy/8lXqD4bwQzpA=
> =OqSg
> -----END PGP SIGNATURE-----
> 
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> * Boston  March 5 & 6, 2012



More information about the rt-users mailing list