[rt-users] CurrentUser value in Template

Kenneth Crocker KFCrocker at lbl.gov
Mon Mar 12 13:45:19 EDT 2007


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:
> 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.
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy 
> a copy at http://rtbook.bestpractical.com
> 



More information about the rt-users mailing list