[rt-users] Lost on notifications
Ramon Kagan
rkagan at yorku.ca
Fri Feb 25 16:00:10 EST 2005
HI,
RT3.4.1
I have an approval setup as follows:
===Create-Ticket: firewall
Subject: New Firewall request from {$Tickets{'TOP'}->RequestorAddresses}
Depended-On-By: {$Tickets{'TOP'}->Id}
Queue: Approvals
Type: Approval
Status: open
Requestor: {$Tickets{'TOP'}->RequestorAddresses}
Content: Someone has requested a firewall ACL. You should review it, so
they can finish their work
ENDOFCONTENT
The in the approval queue there is the scrip labelled "If an approval is
rejected, reject the original and delete pending approvals" which at the
end has...
# Now magically turn myself into a Requestor Notify object...
require RT::Action::Notify; bless($self, 'RT::Action::Notify');
$self->{Argument} = 'Requestor'; $self->Prepare;
Even though there is a requestor I do not have get any email sent. The
logs are:
[Fri Feb 25 20:49:00 2005] [info]:
<rt-3.4.1-173-1878-12.14.8848629163164 at yorku.ca> #173/1878 - Scrip 12 If
an approval is rejected, reject the original and delete pending approvals
(/opt/rt3/lib/RT/Action/SendEmail.pm:235)
[Fri Feb 25 20:49:00 2005] [info]:
<rt-3.4.1-173-1878-12.14.8848629163164 at yorku.ca> No recipients found. Not
sending.
(/opt/rt3/lib/RT/Action/SendEmail.pm:247)
So I tried...
Description: alternate reject notification
Condition: User Defined
if ($self->TransactionObj->Type eq "Status" and
$self->TransactionObj->NewValue eq "rejected") {
return 1;
} else {
return 0;
}
Action: Notify Requestors
Template: Approval Rejected
I get the same in the logs:
[Fri Feb 25 20:49:00 2005] [info]:
<rt-3.4.1-174-1878-21.12.6339145001836 at yorku.ca> #174/1878 - Scrip 21
alternate reject notification (/opt/rt3/lib/RT/Action/SendEmail.pm:235)
[Fri Feb 25 20:49:00 2005] [info]:
<rt-3.4.1-174-1878-21.12.6339145001836 at yorku.ca> No recipients found. Not
sending.
(/opt/rt3/lib/RT/Action/SendEmail.pm:247)
Anybody have any idea why this isn't working? The ticket (approval) does
have a Requestor associated with it.
Ramon Kagan
York University, Computing and Network Services
Information Security - Senior Information Security Analyst
(416)736-2100 #20263
rkagan at yorku.ca
----------------------------------- ------------------------------------
I have not failed. I have just I don't know the secret to success,
found 10,000 ways that don't work. but the secret to failure is
trying to please everybody.
- Thomas Edison - Bill Cosby
----------------------------------- ------------------------------------
More information about the rt-users
mailing list