[rt-devel] Adding Ticket ID to Articles

Thomas Sibley trs at bestpractical.com
Mon Sep 10 20:27:21 EDT 2012


On 09/07/2012 07:53 AM, Ashley Etherington wrote:
> Hi all, I started playing with articles yesterday to create some
> canned responses, But have been unable to figure out how to pull any
> data from the ticket to use on the article, I have tried using the same
> method as templates ({$Ticket->id}) but unfortunately that does not
> appear to work , Am I missing something? Thank you.

Article content is static in core RT.  However, there is an extension
called RT::Extension::ArticleTemplates
<https://metacpan.org/module/RT::Extension::ArticleTemplates> which lets
you use the same syntax as notification templates.  The objects
available are $Article and $Ticket.

Please note this is a very large *security risk* since very often normal
users are allowed to edit articles.  With the extension installed,
anyone who can edit articles can run arbitrary code on your server (just
like any admin who can edit Perl notification templates).



More information about the rt-devel mailing list