[rt-users] Skip owner notification for certain users (owners)

Ondrej Jombik jombik at platon.org
Fri Aug 26 00:12:12 EDT 2016

We have certain users in our system, which do not need to get certain
type of notifications, for example On Owner Change, we do not want
Notify Owner for certain owners.

There is a standard Script which works fine:

     Description: On Owner Change Notify Owner
     Condition: On Owner Change
     Action: Notify Owner
     Template: Transaction

As I said, this works fine, but for all owners. We want to skip this
Scrip for some owners.

I put this into Custom condition:

     my $owner = $self->TicketObj->Owner;
     $RT::Logger->info('SCRIP: Owner change detected: ID '.$owner);
     if ($owner == 12) {
       return 0;
      return 1;

But it seems to have no effect. I think this Custom condition works only
for "User Defined" actions. Then how can I define some conditions for
system-wide actions like "Notify Owner"?



Platon Technologies s.r.o., Hlavna 3, Sala SK-92701
+421 903 PLATON - info at platon.org - http://platon.org

My current location: Phoenix, Arizona
My current timezone: -0700 UTC (MST)
(updated automatically)

More information about the rt-users mailing list