Example for using RT::Extension::ArticleTemplates

Hello,

Does anyone have a simple example for using RT::Extension::ArticleTemplates in Articles?

i.e. how to include variables from the ticket or currently logged in user in the article text?

I’d like to also include some dates based on the current date, which should be simple enough to write some perl to do that e.g. current date / strftime + 14 days to produce some output like:

“If we have not heard from you by {$reply_date}, then we will close this ticket…”

etc.

Thanks.

Rob

It should be the same setup as Perl email templates I believe, so you could access the ticket object like this:

Hello {$Ticket->Subject}

ref:
https://docs.bestpractical.com/rt/5.0.2/customizing/templates.html#Variables

Looks like the missing detail I was looking for.

I’ll experiment with this.

Thanks!