Opened 13 years ago
Closed 12 years ago
#226 closed enhancement (fixed)
More versatile workflow : compatibility with AdvancedTicketWorkflowPlugin
Reported by: | Frédéric DUARTE <f.duarte@…> | Owned by: | bas |
---|---|---|---|
Priority: | major | Milestone: | New email2trac release 2.4.0 |
Component: | email2trac | Version: | 1.6.0 |
Keywords: | Cc: |
Description
It would be useful to get email2trac aware of the 'workflow' entry of trac.ini's [ticket] section.
It would help to trigger custom workflow operations that are not handled by Trac's ConfigurableTicketWorkflow.
Attachments (0)
Change History (11)
comment:1 Changed 13 years ago by Frédéric DUARTE <f.duarte@…>
comment:2 Changed 13 years ago by bas
- Status changed from new to assigned
- Type changed from defect to enhancement
when email2trac is started it read the trac environment and starts all plugins. Is the api different for AdvancedTicketWorkflowPlugin? or must i just another api-function that triggers theAdvancedTicketWorkflowPlugin and if not installed uses the default one. I read that you patch the source can the patched by attached?
comment:3 Changed 13 years ago by Frédéric DUARTE <f.duarte@…>
Sorry, I'm not aware of Trac API or plug-ins, otherwise I would have provided you with an adequate patch.
Our current patch to customize the workflow for our needs just consists of some hard coded actions that are not really pertinent for this ticket. It just looks like the following lines located in the ticket_update() function around line 830:
if tkt['status'] in ['need_info']: fields['cc'] = '' fields['owner'] = tkt['reporter']
Anyway, I think that you could get the list of workflow providers from the trac.ini project and use them in ticket_update() the same way you use ConfigurableTicketWorkflow. It should be the same API otherwise developers would not be able to build any custom workflow handlers ;-).
comment:4 Changed 12 years ago by bas
comment:5 Changed 12 years ago by bas
- Milestone set to New email2trac release 2.X.X
Frédéric,
Can you test this release?
comment:6 Changed 12 years ago by Frédéric DUARTE
Hi,
I'm gonna check this, ASAIC. Could take few days, but I'll keep you in touch by the end of the month.
Frédéric.
comment:7 Changed 12 years ago by bas
comment:8 Changed 12 years ago by bas
(In [556]) chamged workflow to TicketModule? implementation as suggested by: Holger Jürgs, see #226
comment:9 Changed 12 years ago by bas
comment:10 Changed 12 years ago by bas
comment:11 Changed 12 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
Greetings,
We've been using email2trac for a while: great job, Bas !
But we've always been forced to patch it till then. The first reason (out of 2) is that we have a Q&A cycle that implies our customers: we ask them questions, and they answer by email only. Here is the process:
Now, with the new workflow (great!) feature of release 1.6.0 we are pleased to be about to avoid patching the script ... but the point "the owner gets back to the reporter" can not be handled without a patch ... yet.
"the owner gets back to the reporter" can not handled because it is not an operation proposed by Trac's ConfigurableTicketWorkflow. Fortunately it can be handled by AdvancedTicketWorkflowPlugin. Unfortunately, email2trac is not aware of the 'workflow' entry of the [ticket] section of trac.ini.
It would be great to have this feature extension.
Thanks in advance.