Modify

Opened 3 years ago

Closed 3 years ago

#13167 closed defect (worksforme)

Error when added to workflow

Reported by: anonymous Owned by: ejucovy
Priority: normal Component: WorkflowNotificationPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description (last modified by Ryan J Ollos)

When I add TicketWorkflowNotifier to the workflow i get the following error accessing any page on my trac project.

Cannot find implementation(s) of the ITicketActionController interface named TicketWorkflowNotifier. Please check that the Component is enabled or update the option [ticket] workflow in trac.ini.

I read through the bug list and saw where someone got similar issues, but the difference is that I have modified the workflow from the original options. But here is the only ticket-workflow-notifications section entry I have:

[ticket-workflow-notifications]
owner_changed = *
owner_changed.body = Ticket owner changed by ${change.author}: ${change.comment}\n\n{% for field in old_ticket %}{% if old_ticket[field] != ticket[field] %}\n${field} changed: ${old_ticket[field]} => ${ticket[field]}{% end %}{% end %}
owner_changed.recipients = ${ticket.owner}
owner_changed.subject = You are now the owner of ticket ${ticket.id}!
owner_changed.condition = ${old_ticket.owner != ticket.owner}

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 3 years ago by ejucovy

Did you remember to enable the plugin's components, too? You'll need a line like this in your conf/trac.ini --

[components]
workflow_notification.* = enabled

comment:3 Changed 3 years ago by Ryan J Ollos

It works for me. If you still have trouble after comment:2, please check the logs.

You'll probably at least need to modify your condition to avoid errors when creating tickets:

owner_changed.condition = ${old_ticket.get('owner') != ticket.owner}

comment:4 Changed 3 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Closing due to no response. Please reopen or ask on the trac:MailingList if you need more help.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain ejucovy.
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.