[rt-users] Set a ticket custom field based on a User Custom field scrip action
Joel Schuweiler
Joel.Schuweiler at schmoozecom.com
Tue Feb 17 09:08:50 EST 2009
[Tue Feb 17 14:06:09 2009] [error]: Scrip 67 Prepare failed: Can't call method "FirstCustomFieldValue" without a package or object reference at (eval 932) line 1.
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Emmanuel Lacour
Sent: Tuesday, February 17, 2009 2:24 AM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Set a ticket custom field based on a User Custom field scrip action
On Mon, Feb 16, 2009 at 06:11:30PM -0600, Joel Schuweiler wrote:
> Here's the scenario:
>
> 1) A User has a custom field called Billable with two choices, yes, and no.
> 2) User creates ticket
> 3) Scrip checks Billable and sets ticket billable if user is billable
>
>
> I'm having a bit of trouble figuring out how I can access the custom
> field belonging to the user however, anyone have thoughts on this?
>
Something like this I think:
my $billable = $self->TransactionObj->Creator->FirstCustomFieldValue ( 'Billable' );
_______________________________________________
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