CurrentUser value in Template

Hello,

I spent one hour trying to find way how include current user Name or
RealName into Correspondence template. Is that real? I have try
following codes:
{ $Ticket->LastUpdatedByObj->Name } - this code return username of
user who update ticket before me
{ $self->CurrentUser } and etc.

So is there any way to include that values into Correspondence template?

Thanks in advance.

$Transaction->CreatorObj->NameOn 3/11/07, Konstantin N. Bezruchenko bezruk@gmail.com wrote:

Hello,

I spent one hour trying to find way how include current user Name or
RealName into Correspondence template. Is that real? I have try
following codes:
{ $Ticket->LastUpdatedByObj->Name } - this code return username of
user who update ticket before me
{ $self->CurrentUser } and etc.

So is there any way to include that values into Correspondence template?

Thanks in advance.


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

Konstantin,

Try something along these lines:

Ticket Description:
{
my $Current_User;
$Current_User = “your code to access data”;
return $Current_User;
}

Then insert this bit of code in the appropriate sequence in the 

template you want to use. Hope this helps.

Kenn
LBNL

Konstantin N. Bezruchenko wrote: