Re: [rt-users] restrict setting status to "resolved"

2009-04-02 Thread Shawn M Moore
On Thu, Apr 02, 2009 at 05:21:16PM -0700, Tom Lahti wrote: > Now, how to get at the "old value" instead of hard-coding "open". $self->TransactionObj->OldValue Shawn ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: ht

Re: [rt-users] restrict setting status to "resolved"

2009-04-02 Thread Tom Lahti
Argh, as usual the answer hits me right as I hit 'send'. > $TicketObj->_Set(Field => 'Status', Value => 'open', RecordTransaction => > 0); should be $self->TicketObj->blah blah Now, how to get at the "old value" instead of hard-coding "open". -- -- Tom

[rt-users] restrict setting status to "resolved"

2009-04-02 Thread Tom Lahti
Despite all my work with the REST interface, I know little to nothing about scrips. I've been asked to restrict setting ticket status to 'resolved' unless the actor is a requestor. I tried setting up a scrip with condition On resolve, Action User defined, Stage Transaction Create: return 1 if