Re: [rt-users] Wierd result

2007-05-10 Thread Kenneth Crocker
Gene, Thanks a bunch! I'll try it in a couple days and let you know. thanks again for the great help. Kenn LBNL Gene LeDuc wrote: Kenn, here's the condition code from one of my scrips that triggers when CF 'DMCA State' changes to 'TNS_Restore''. This uses TransactionCreate, not Batch.

Re: [rt-users] Wierd result

2007-05-10 Thread Gene LeDuc
Kenn, here's the condition code from one of my scrips that triggers when CF 'DMCA State' changes to 'TNS_Restore''. This uses TransactionCreate, not Batch. { ### Testing CF triggers my $Transaction = $self->TransactionObj; my $Ticket = $self->TicketObj; my $val = $Transaction->Type eq "C

Re: [rt-users] Wierd result

2007-05-10 Thread Kenneth Crocker
Gene, You're hints were helpful, thank you. Now I am discovering that what I really want to do is automatically change the ticket status based on a particular CF being change to a certain value. I'm no Perl guru. I have read alot about TransactionBatch, so I know I have to enable that, but I

Re: [rt-users] Wierd result

2007-05-08 Thread Kenneth Crocker
Stephan, Thanks for answering. You're right, too confusing. I was originaling looking to key off a CF change. I re-thought my condition code and decide to just key off the status change.Now I have: return ($self->TransactionObj->Type eq "Status" && $self->TransactionObj->NewValue eq

Re: [rt-users] Wierd result

2007-05-08 Thread Gene LeDuc
Hi Kenn, In addition to what Steve pointed out, I think you have an error in your condition code. The second term of $self->Ticket->FirstCustomFieldValue('Approval-Status') should probably be TicketObj instead of Ticket. Something I started doing with my scrips to avoid makin

Re: [rt-users] Wierd result

2007-05-08 Thread Stephen Turner
At Tuesday 5/8/2007 01:14 AM, Kenneth Crocker wrote: To all, I have created the following scrip/conditions: Condition: User Defined Action: Notify AdminCc's, Cc's, Requestors Template: Reviewed (new template created as well) Custom Condition: #

[rt-users] Wierd result

2007-05-07 Thread Kenneth Crocker
To all, I have created the following scrip/conditions: Condition: User Defined Action: Notify AdminCc's, Cc's, Requestors Template: Reviewed (new template created as well) Custom Condition: # condition execution on ticket status and Custom Field