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?
Thanks!
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?
Are you failing t/approval/basic.t ?
-kevin
No.
For future reference how do you run just one unit test?On Tue, Sep 20, 2011 at 4:05 PM, Kevin Falcone falcone@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 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?
Are you failing t/approval/basic.t ?
-kevin
RT Training Sessions (http://bestpractical.com/services/training.html)
- Chicago, IL, USA — September 26 & 27, 2011
- San Francisco, CA, USA — October 18 & 19, 2011
- Washington DC, USA — October 31 & November 1, 2011
- Melbourne VIC, Australia — November 28 & 29, 2011
- Barcelona, Spain — November 28 & 29, 2011
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 falcone@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 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?
Are you failing t/approval/basic.t ?
-kevin
RT Training Sessions (http://bestpractical.com/services/training.html)
- Chicago, IL, USA — September 26 & 27, 2011
- San Francisco, CA, USA — October 18 & 19, 2011
- Washington DC, USA — October 31 & November 1, 2011
- Melbourne VIC, Australia — November 28 & 29, 2011
- Barcelona, Spain — November 28 & 29, 2011
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 no notification was sent.On Tue, Sep 20, 2011 at 4:23 PM, Todd Chapman todd@chaka.net wrote:
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 falcone@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 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?
Are you failing t/approval/basic.t ?
-kevin
RT Training Sessions (http://bestpractical.com/services/training.html)
- Chicago, IL, USA — September 26 & 27, 2011
- San Francisco, CA, USA — October 18 & 19, 2011
- Washington DC, USA — October 31 & November 1, 2011
- Melbourne VIC, Australia — November 28 & 29, 2011
- Barcelona, Spain — November 28 & 29, 2011