Re: [rt-users] TransactionObj OldValue is not working for me

2009-03-24 Thread Gene LeDuc
Apply a liberal dose of $RT::Logger and see what turns up. I'd split your IF into 2 pieces and then stick a logger in the gap. Something like my $Trans = $self->TransactionObj;### because I'm a lazy typist if ($Trans->Type eq "Status") { ### logger call to print value of ->OldValue and -

Re: [rt-users] TransactionObj OldValue is not working for me

2009-03-23 Thread slamp slamp
Actually I have defined autoclose as a Status which coincides with a cron script that closes tickets with status autoclose. I have a resolve scrip notification which is defined in my previous e-mail. I do not want the notification to go out if the previous status was "autoclose". On Mon, Mar 23, 2

Re: [rt-users] TransactionObj OldValue is not working for me

2009-03-23 Thread Ken Crocker
Slamp, I don't think that the "autoclose" value has anything to do with a status change. If you are looking for a transaction with "Type" = "Status", then the only values that will work would be the actual status values that are available. I'm thinking you need to re-evaluate the conditio

[rt-users] TransactionObj OldValue is not working for me

2009-03-23 Thread slamp slamp
I have the following in my resolve scrip that I borrowed from the site. I added the $self->TransactionObj->OldValue ne "autoclose" portion but it does not seem to be working. Can anyone help? Basically I don't want to get this notification if the status old value was set to autoclose. Condition: U