[rt-users] Determine OldValue of Status in External Script

Mathew Snyder mathew.snyder at gmail.com
Sun Feb 10 12:51:45 EST 2008


When working with scrips within RT use of
$self->TransactionObj->OldValue is already in the context of the action
being performed.  However, I'm trying to write a script outside of RT
which will write out a list of tickets which have been reopened.  Since
it is external it doesn't seem, on the surface, that any checks are
already in the context of what I'm looking for.

If I gather up a list of tickets which are 'new' or 'open', how do I
narrow that list down to tickets which were previously 'resolved' prior
to the current status?  Would I still use TransactionObj->OldValue? 
TransactionObj doesn't seem correct since I'm not performing any
transactions to act as the context.

When dealing with CustomFields I can specify by using
FirstCustomFieldValue.  How do I specify standard fields like Status?

-- 
Keep up with me and what I'm up to: http://theillien.blogspot.com




More information about the rt-users mailing list