Opened 6 years ago

Closed 6 years ago

#3150 closed defect (fixed)

TicketWorkflowOpRunExternal does not work properly

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

Description (last modified by retracile)

Trac 0.11, AdvancedTicketWorkflowPlugin as of r3730 , Python 2.5.2

From trac.ini:

promotionneeded = stagingpassed -> promotionneeded = 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:

touch /tmp/promotionneeded.ran
echo -e "Ticket #$1 is being requested for promotion to live by $2.\n\n$1\n" | mail -s "Trac request to promote to live - Ticket # $1"  

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 6 years ago by anonymous

  • Owner changed from mgood to retracile

comment:2 Changed 6 years ago by retracile

  • Component changed from AccountManagerPlugin to AdvancedTicketWorkflowPlugin
  • Description modified (diff)

Correct the component.

comment:3 Changed 6 years ago by retracile

  • Resolution set to fixed
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from retracile. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.