Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Approval notification

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


mathieu at closetwork

Oct 14, 2009, 11:43 AM

Post #1 of 3 (633 views)
Permalink
Approval notification

Hello,

I set up a "Create Tickets" script, and the approval ticket is created, but
no emails is ever sent to the approvers.

I tracked down in RT::Approval::Rule::NewPending, in commit, this code:

# first txn entry of the approval ticket
local $self->{TransactionObj} = $to;
$self->RunScripAction('Notify Owner', 'New Pending Approval', @_);

return;

# this generates more correct content of the message, but not sure
# if ccmessageto is the right way to do this.
my $template = $self->GetTemplate('New Pending Approval',
TicketObj => $top,
TransactionObj => $to)
or return;


Was the "return" in the middle left there by mistake? No email is ever sent
since there is no owner, just a few AdminCC.

Thanks

--
Mathieu Longtin
1-514-803-8977


falcone at bestpractical

Oct 14, 2009, 2:52 PM

Post #2 of 3 (582 views)
Permalink
Re: Approval notification [In reply to]

On Wed, Oct 14, 2009 at 02:43:22PM -0400, Mathieu Longtin wrote:
> Hello,
>
> I set up a "Create Tickets" script, and the approval ticket is created, but
> no emails is ever sent to the approvers.

I bounced your mail into the bug tracker and asked the developer
responsible for the code to comment.

-kevin

> I tracked down in RT::Approval::Rule::NewPending, in commit, this code:
>
> # first txn entry of the approval ticket
> local $self->{TransactionObj} = $to;
> $self->RunScripAction('Notify Owner', 'New Pending Approval', @_);
>
> return;
>
> # this generates more correct content of the message, but not sure
> # if ccmessageto is the right way to do this.
> my $template = $self->GetTemplate('New Pending Approval',
> TicketObj => $top,
> TransactionObj => $to)
> or return;
>
>
> Was the "return" in the middle left there by mistake? No email is ever sent
> since there is no owner, just a few AdminCC.


mathieu at closetwork

Oct 14, 2009, 3:07 PM

Post #3 of 3 (579 views)
Permalink
Re: Approval notification [In reply to]

I changed "Notify Owner" to "Notify AdminCCs", that seemed to fix it.

I'm noticing that the whole Approval thing is kind of clunky.

Another problem I encountered:
When a member of a group approves of a ticket, the owner is not changed, so
the email looks like "Ticket approved by Nobody".

The whole Ruleset thing is kind of nice though, it makes it easy to code
some extensions that involve scrip functionality without inserting scrips
all over the place.

--
Mathieu Longtin
1-514-803-8977


On Wed, Oct 14, 2009 at 2:43 PM, Mathieu Longtin <mathieu [at] closetwork>wrote:

> Hello,
>
> I set up a "Create Tickets" script, and the approval ticket is created, but
> no emails is ever sent to the approvers.
>
> I tracked down in RT::Approval::Rule::NewPending, in commit, this code:
>
> # first txn entry of the approval ticket
> local $self->{TransactionObj} = $to;
> $self->RunScripAction('Notify Owner', 'New Pending Approval', @_);
>
> return;
>
> # this generates more correct content of the message, but not sure
> # if ccmessageto is the right way to do this.
> my $template = $self->GetTemplate('New Pending Approval',
> TicketObj => $top,
> TransactionObj => $to)
> or return;
>
>
> Was the "return" in the middle left there by mistake? No email is ever sent
> since there is no owner, just a few AdminCC.
>
> Thanks
>
> --
> Mathieu Longtin
> 1-514-803-8977
>

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.