Modify

Opened 16 years ago

Closed 16 years ago

#3150 closed defect (fixed)

TicketWorkflowOpRunExternal does not work properly

Reported by: gmr@… Owned by: Eli Carter
Priority: normal Component: AdvancedTicketWorkflowPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Eli Carter)

Trac 0.11, AdvancedTicketWorkflowPlugin as of r3730 , Python 2.5.2

From trac.ini:

promotionneeded = stagingpassed -> promotionneeded
promotionneeded.name = Ready to promote to live, send request
promotionneeded.operations = run_external
promotionneeded.run_external = An email will be sent with the request.

My TRAC_ENV/hooks/promotionneeded script:

#!/bin/bash
touch /tmp/promotionneeded.ran
echo -e "Ticket #$1 is being requested for promotion to live by $2.\n\nhttp://trac.myurl.com/ticket/$1\n" | mail -s "Trac request to promote to live - Ticket # $1" gmr@myyearbook.com  

Script is executable and tested by hand.

No log entries show up at log level debug that this is firing or erroring out. I tried popping in your code prior to Ticket #3087 and it didn't work either.

Attachments (0)

Change History (3)

comment:1 Changed 16 years ago by anonymous

Owner: changed from Matt Good to Eli Carter

comment:2 Changed 16 years ago by Eli Carter

Component: AccountManagerPluginAdvancedTicketWorkflowPlugin
Description: modified (diff)

Correct the component.

comment:3 Changed 16 years ago by Eli Carter

Resolution: fixed
Status: newclosed

As it turns out, this was a bug in Trac, not the plugin. Fixed in Trac r7200 for 0.11-stable and r7201 for trunk.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Eli Carter.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.