I set up a CreateTickets scrip per the normal methods. The approval ticket
gets created and linked properly to the original ticket, but
new NewPending approval rule runs before the CreateTicket::PostProcess calls
AddLinks, thus NewPending::Prepare returns false.
Is this working for anyone else?
On Tue, Sep 20, 2011 at 03:25:20PM -0400, Todd Chapman wrote:
I set up a CreateTickets scrip per the normal methods. The approval ticket
gets created and linked properly to the original ticket, but
new NewPending approval rule runs before the CreateTicket::PostProcess calls
AddLinks, thus
No. :(
For future reference how do you run just one unit test?
On Tue, Sep 20, 2011 at 4:05 PM, Kevin Falcone falc...@bestpractical.comwrote:
On Tue, Sep 20, 2011 at 03:25:20PM -0400, Todd Chapman wrote:
I set up a CreateTickets scrip per the normal methods. The approval
ticket
gets
Kevin,
Do you have any idea what might be wrong?
How can NewPending::Prepare even be successful if links are added silently
after tickets are created in CreateTickets ?
On Tue, Sep 20, 2011 at 4:05 PM, Kevin Falcone falc...@bestpractical.comwrote:
On Tue, Sep 20, 2011 at 03:25:20PM -0400,
I found the problem. Someone had created a scrip that auto-opened all new
tickets. RT/Approval/Rule/NewPending has two conditions:
$self-OnStatusChange('open') and
eval { $T::Approving = ($self-TicketObj-AllDependedOnBy( Type =
'ticket' ))[0] }
Since both were never true at the same time