RT scrip question

To list,

I am trying to capture the ticket owner as the ticket is created (via 

Web) and I’m not sure of how to code that. I know how to ensure that I’m
checking a WebUI transaction and the transaction creator, but don’t know
how to get the ticket owner on creation. Help?? Thanks.

Kenn
LBNL

Condition: On Create
Action Code:

$self->TicketObj->Owner - returns owner id
$self->TicketObj->OwnerObj - returns owner as RT::User objectOn Wed, Oct 22, 2008 at 12:58 AM, Kenneth Crocker KFCrocker@lbl.gov wrote:

To list,

   I am trying to capture the ticket owner as the ticket is created (via

Web) and I’m not sure of how to code that. I know how to ensure that I’m
checking a WebUI transaction and the transaction creator, but don’t know
how to get the ticket owner on creation. Help?? Thanks.

Kenn
LBNL


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

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.

Ruslan,

Thanks. That did it.

Kenn
LBNLOn 10/21/2008 8:31 PM, Ruslan Zakirov wrote:

Condition: On Create
Action Code:

$self->TicketObj->Owner - returns owner id
$self->TicketObj->OwnerObj - returns owner as RT::User object

On Wed, Oct 22, 2008 at 12:58 AM, Kenneth Crocker KFCrocker@lbl.gov wrote:

To list,

   I am trying to capture the ticket owner as the ticket is created (via

Web) and I’m not sure of how to code that. I know how to ensure that I’m
checking a WebUI transaction and the transaction creator, but don’t know
how to get the ticket owner on creation. Help?? Thanks.

Kenn
LBNL


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

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