Re: [rt-users] Set a ticket custom field based on a User Custom field scrip action

2009-02-17 Thread Emmanuel Lacour
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

Re: [rt-users] Set a ticket custom field based on a User Custom field scrip action

2009-02-17 Thread Joel Schuweiler
Of Emmanuel Lacour Sent: Tuesday, February 17, 2009 2:24 AM To: rt-users@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

Re: [rt-users] Set a ticket custom field based on a User Custom field scrip action

2009-02-17 Thread Emmanuel Lacour
On Tue, Feb 17, 2009 at 08:08:50AM -0600, Joel Schuweiler wrote: [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. my $billable =

Re: [rt-users] Set a ticket custom field based on a User Custom field scrip action

2009-02-17 Thread Raed El-Hames
Or maybe : my $billable = $self-TransactionObj-CreatorObj-FirstCustomFieldValue('Billable'); note the (Obj) at the end of Creator Regards; Roy Emmanuel Lacour wrote: On Tue, Feb 17, 2009 at 08:08:50AM -0600, Joel Schuweiler wrote: [Tue Feb 17 14:06:09 2009] [error]: Scrip 67 Prepare

[rt-users] Set a ticket custom field based on a User Custom field scrip action

2009-02-16 Thread Joel Schuweiler
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