Hello,
I’m looking for help with a custom scrip
The scrip that notifies AdminCCs on create is also triggered by
reminders - which I’m looking to stop
I found this, which is exactly what I’m wanting
http://lists.bestpractical.com/pipermail/rt-users/2009-December/062565.html
my $trans = $self->TransactionObj;
my $ticket = $self->TicketObj;
return 0 unless $trans->Type == ‘Create’;
return 0 unless $ticket->Type != ‘reminder’;
return 1;
But the custom code doesn’t seem to work (completely disables AdminCC
notifications)
It was written in 2009, so I’m guessing something has changed in the API?
Can anyone point me to the right way of doing
“On create, except for reminders, notify AdminCCs”
Tony Atkinson
Office: 01375 398111
Mobile: 07939 997369
PGP: D9D5DA10
Datapro Services Limited
2 High Street, Grays,
Essex. RM17 6LU
www.dataproservices.co.uk
Company No: 3478926
Vat No: 714 5668 24
Hello,
I’m looking for help with a custom scrip
The scrip that notifies AdminCCs on create is also triggered by
reminders - which I’m looking to stop
I found this, which is exactly what I’m wanting
[rt-users] Reminders are setting off one of my OnCreate Scrips
my $trans = $self->TransactionObj;
my $ticket = $self->TicketObj;
return 0 unless $trans->Type == ‘Create’;
return 0 unless $ticket->Type != ‘reminder’;
return 1;
But the custom code doesn’t seem to work (completely disables AdminCC
notifications)
It was written in 2009, so I’m guessing something has changed in the API?
Can anyone point me to the right way of doing
“On create, except for reminders, notify AdminCCs”
I’m amazed that code ever worked, it’s doing numerical comparison of
strings (eq and ne vs == and !=).
You can read more about them in perldoc perlop, but a straight swap
should be enough, although I might phrase the second check
differently.
-kevin
I’m amazed that code ever worked, it’s doing numerical comparison of
strings (eq and ne vs == and !=).
Ah-ha, thanks
(damn perl, just has to do things differently to bash…
Tony Atkinson
Office: 01375 398111
Mobile: 07939 997369
PGP: D9D5DA10
Datapro Services Limited
2 High Street, Grays,
Essex. RM17 6LU
www.dataproservices.co.uk
Company No: 3478926
Vat No: 714 5668 24
signature.asc (554 Bytes)