[rt-users] Notify owners of new ticket not working totally

Kai Storbeck kai at xs4all.nl
Wed Jun 19 10:28:30 EDT 2013


On 2013-06-19 15:49, Cena, Stephen (ext. 300) wrote:
> I'm using the NotifyOwner plug in for extra notifications:
> http://search.cpan.org/dist/RT-Extension-NotifyOwners/lib/RT/Extension/NotifyOwners.pm
> [1]
> 
> The Scrip is working, however its also sending out an email even if
> the ticket gets an owner. It should only fire when the ticket is
> created and the owner is "Nobody In Particular".
> 
> Here is my Scrip:
> ============================
> Desc: On Create Unowned Ticket
> Condition: On Create
> Action: Notify Potential Owners
> Template: Global Template: Potential owners notification
> Stage: TransactionCreate
> 
> Custom Condition:
> return 1 if $self->OwnerObj->Id == $RT::Nobody->Id;
> return 0;
> =============================
> 
> Is my custom condition wrong?

Hi Stephen,

You should select "Userdefined" from the Condition pulldown menu, or it 
will not run your custom condition code block.

Regards,
Kai



More information about the rt-users mailing list