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

Giuseppe Sollazzo gsollazz at sgul.ac.uk
Wed Feb 1 06:03:30 EST 2012


-----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-----




More information about the rt-users mailing list