[rt-users] Queue Notification Scrip question

Kevin Falcone falcone at bestpractical.com
Tue Jan 24 15:42:24 EST 2012

On Tue, Jan 24, 2012 at 08:02:37PM +0000, Todd French wrote:
> I'm still having trouble with this, and I feel like something with my logic is fundamentally flawed.  With this:
> > Description: On Queue Change, Notify AdminCC if not owned
> > Condition: User Defined
> > Action: Notify AdminCcs
> > Template: Global Template: Queue Notification
> > Stage: TransactionCreate
> >
> > Custom Condition:
> > return 0 unless $self->TransactionObj->Type eq "Set";
> > return 0 unless $self->TransactionObj->Field eq "Queue";
> > return 1 unless $self->TicketObj->Owner != $RT::Nobody->id;
> If I change the last line in my condition to:
> return 0 unless $self->TicketObj->Owner != $RT::Nobody->id;
> it still triggers and sends the email, even if I have a ticket move from one queue to another both while owned by nobody in particular, and while being owned, but not changing ownership.  This tells me that I'm not doing something right at all, and that I don't know enough yet as to know why.

Please see my post from 1/17 suggesting how to debug the behavior you're

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120124/2109c769/attachment.sig>

More information about the rt-users mailing list