[rt-users] Template to include name of person who performed last action

2008-10-17 Thread Helmuth Ramirez
I've searched around for this, but I'm not sure I am searching the right
keywords.  Here is what we would like to do:

 

We have a scrip that runs when someone changes a custom field to a
particular value.  That triggers an e-mail to be sent based on a
template.  I figured out how to include the value of the custom field,
but what is the format to include the name of the person who performed
the action to change this value?  Does that make sense?  Essentially, I
would like to be able to pull the name that shows up in the audit logs
JoeSmith - comments added, JoeSmith - Status changed..., etc.

 

Thanks everyone!

Helmuth

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Gene LeDuc
You probably want the creator of the transaction: 
$self-TransactionObj-CreatorObj-RealName

At 10:59 AM 10/17/2008, Helmuth Ramirez wrote:
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
 boundary=_=_NextPart_001_01C93082.0B746043

I’ve searched around for this, but I’m not sure I am searching the right 
keywords.  Here is what we would like to do:

We have a scrip that runs when someone changes a custom field to a 
particular value.  That triggers an e-mail to be sent based on a 
template.  I figured out how to include the value of the custom field, but 
what is the format to include the name of the person who performed the 
action to change this value?  Does that make sense?  Essentially, I would 
like to be able to pull the name that shows up in the audit logs “JoeSmith 
– comments added”, “JoeSmith – Status changed…”, etc.

Thanks everyone!
Helmuth


-- 
Gene LeDuc, GSEC
Security Analyst
San Diego State University 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Kenneth Crocker
Helmuth,


Or my $whomever = $self-TransactionObj-CreatorObj-Name;.You could 
also get the user's ID. Hope this helps.


Kenn
LBNL


On 10/17/2008 11:06 AM, Gene LeDuc wrote:
 You probably want the creator of the transaction: 
 $self-TransactionObj-CreatorObj-RealName
 
 At 10:59 AM 10/17/2008, Helmuth Ramirez wrote:
 Content-class: urn:content-classes:message
 Content-Type: multipart/alternative;
 boundary=_=_NextPart_001_01C93082.0B746043

 I’ve searched around for this, but I’m not sure I am searching the right 
 keywords.  Here is what we would like to do:

 We have a scrip that runs when someone changes a custom field to a 
 particular value.  That triggers an e-mail to be sent based on a 
 template.  I figured out how to include the value of the custom field, but 
 what is the format to include the name of the person who performed the 
 action to change this value?  Does that make sense?  Essentially, I would 
 like to be able to pull the name that shows up in the audit logs “JoeSmith 
 – comments added”, “JoeSmith – Status changed…”, etc.

 Thanks everyone!
 Helmuth
 
 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Helmuth Ramirez
Thanks Gene,
Although I'm clearing doing something wrong.  I am putting the following
in my template:

Updated by: $self-TransactionObj-CreatorObj-RealName

But the name doesn't show up, just the line I put in the template :(

Thanks

-Original Message-
From: Gene LeDuc [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2008 2:06 PM
To: Helmuth Ramirez
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Template to include name of person who performed
last action

You probably want the creator of the transaction: 
$self-TransactionObj-CreatorObj-RealName

At 10:59 AM 10/17/2008, Helmuth Ramirez wrote:
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
 boundary=_=_NextPart_001_01C93082.0B746043

I've searched around for this, but I'm not sure I am searching the
right 
keywords.  Here is what we would like to do:

We have a scrip that runs when someone changes a custom field to a 
particular value.  That triggers an e-mail to be sent based on a 
template.  I figured out how to include the value of the custom field,
but 
what is the format to include the name of the person who performed the 
action to change this value?  Does that make sense?  Essentially, I
would 
like to be able to pull the name that shows up in the audit logs
JoeSmith 
- comments added, JoeSmith - Status changed..., etc.

Thanks everyone!
Helmuth


-- 
Gene LeDuc, GSEC
Security Analyst
San Diego State University 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Kenneth Crocker
Helmuth,


Try this:

Updated  by: {$Ticket-CreatorObj-Name} OR
Updated  by: {$Ticket-CreatorObj-RealName}


Kenn
LBNL

On 10/17/2008 12:58 PM, Helmuth Ramirez wrote:
 Thanks Gene,
 Although I'm clearing doing something wrong.  I am putting the following
 in my template:
 
 Updated by: $self-TransactionObj-CreatorObj-RealName
 
 But the name doesn't show up, just the line I put in the template :(
 
 Thanks
 
 -Original Message-
 From: Gene LeDuc [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 17, 2008 2:06 PM
 To: Helmuth Ramirez
 Cc: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] Template to include name of person who performed
 last action
 
 You probably want the creator of the transaction: 
 $self-TransactionObj-CreatorObj-RealName
 
 At 10:59 AM 10/17/2008, Helmuth Ramirez wrote:
 Content-class: urn:content-classes:message
 Content-Type: multipart/alternative;
 boundary=_=_NextPart_001_01C93082.0B746043

 I've searched around for this, but I'm not sure I am searching the
 right 
 keywords.  Here is what we would like to do:

 We have a scrip that runs when someone changes a custom field to a 
 particular value.  That triggers an e-mail to be sent based on a 
 template.  I figured out how to include the value of the custom field,
 but 
 what is the format to include the name of the person who performed the 
 action to change this value?  Does that make sense?  Essentially, I
 would 
 like to be able to pull the name that shows up in the audit logs
 JoeSmith 
 - comments added, JoeSmith - Status changed..., etc.

 Thanks everyone!
 Helmuth
 
 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Gene LeDuc
Put curly braces around the perl stuff:

Updated by: {$self-TransactionObj-CreatorObj-RealName}


At 12:58 PM 10/17/2008, Helmuth Ramirez wrote:
Thanks Gene,
Although I'm clearing doing something wrong.  I am putting the following
in my template:

Updated by: $self-TransactionObj-CreatorObj-RealName

But the name doesn't show up, just the line I put in the template :(

Thanks

-Original Message-
From: Gene LeDuc [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2008 2:06 PM
To: Helmuth Ramirez
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Template to include name of person who performed
last action

You probably want the creator of the transaction:
$self-TransactionObj-CreatorObj-RealName

At 10:59 AM 10/17/2008, Helmuth Ramirez wrote:
 Content-class: urn:content-classes:message
 Content-Type: multipart/alternative;
  boundary=_=_NextPart_001_01C93082.0B746043
 
 I've searched around for this, but I'm not sure I am searching the
right
 keywords.  Here is what we would like to do:
 
 We have a scrip that runs when someone changes a custom field to a
 particular value.  That triggers an e-mail to be sent based on a
 template.  I figured out how to include the value of the custom field,
but
 what is the format to include the name of the person who performed the
 action to change this value?  Does that make sense?  Essentially, I
would
 like to be able to pull the name that shows up in the audit logs
JoeSmith
 - comments added, JoeSmith - Status changed..., etc.
 
 Thanks everyone!
 Helmuth


--
Gene LeDuc, GSEC
Security Analyst
San Diego State University


-- 
Gene LeDuc, GSEC
Security Analyst
San Diego State University 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Helmuth Ramirez
Thank you Kenneth and Gene for your help with this!  I got it to show
the name.

Cheers!
Helmuth

-Original Message-
From: Kenneth Crocker [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2008 4:23 PM
To: Helmuth Ramirez
Cc: Gene LeDuc; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Template to include name of person who performed
last action

Helmuth,


Try this:

Updated  by: {$Ticket-CreatorObj-Name} OR
Updated  by: {$Ticket-CreatorObj-RealName}


Kenn
LBNL

On 10/17/2008 12:58 PM, Helmuth Ramirez wrote:
 Thanks Gene,
 Although I'm clearing doing something wrong.  I am putting the
following
 in my template:
 
 Updated by: $self-TransactionObj-CreatorObj-RealName
 
 But the name doesn't show up, just the line I put in the template :(
 
 Thanks
 
 -Original Message-
 From: Gene LeDuc [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 17, 2008 2:06 PM
 To: Helmuth Ramirez
 Cc: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] Template to include name of person who
performed
 last action
 
 You probably want the creator of the transaction: 
 $self-TransactionObj-CreatorObj-RealName
 
 At 10:59 AM 10/17/2008, Helmuth Ramirez wrote:
 Content-class: urn:content-classes:message
 Content-Type: multipart/alternative;
 boundary=_=_NextPart_001_01C93082.0B746043

 I've searched around for this, but I'm not sure I am searching the
 right 
 keywords.  Here is what we would like to do:

 We have a scrip that runs when someone changes a custom field to a 
 particular value.  That triggers an e-mail to be sent based on a 
 template.  I figured out how to include the value of the custom
field,
 but 
 what is the format to include the name of the person who performed
the 
 action to change this value?  Does that make sense?  Essentially, I
 would 
 like to be able to pull the name that shows up in the audit logs
 JoeSmith 
 - comments added, JoeSmith - Status changed..., etc.

 Thanks everyone!
 Helmuth
 
 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Template to include name of person who performed last action

2008-10-17 Thread Jerrad Pierce

 Updated  by: {$Ticket-CreatorObj-Name} OR
 Updated  by: {$Ticket-CreatorObj-RealName}


Updated  by: {$Ticket-CreatorObj-RealName || $Ticket-CreatorObj-Name }

But if you are using FriendlyFrom the the actual email would include this
too, wouldn't it?

-- 
Cambridge Energy Alliance: Save money  the planet
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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