[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-users
Subject:    [rt-users] Lost on notifications
From:       Ramon Kagan <rkagan () yorku ! ca>
Date:       2005-02-25 21:00:10
Message-ID: Pine.LNX.4.58.0502251549340.14868 () molpe ! infosec ! yorku ! ca
[Download RAW message or body]

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@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@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@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@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@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
-----------------------------------   ------------------------------------
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon! (Boston, San \
Francisco, Austin, Sydney) Contact training@bestpractical.com for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic