Modify

Opened 7 years ago

Last modified 6 years ago

#2107 assigned task

Integration with Workflow

Reported by: hw@… Owned by: coling
Priority: normal Component: WorkLogPlugin
Severity: normal Keywords: Workflow, WorkLogPlugin
Cc: Trac Release: 0.11

Description

Hi coling,

Can you explain please your plugin can work with .11 workflows ? i.e. If you start working the ticket status goes to the in_work status if you stop work to the assigned status (in the enterprsie workflow example)

Thanks a lot,

Holger

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by goldman

  • Trac Release changed from 0.10 to 0.11

I would really like to see WPL integrated with 0.11 workflows. We're using Enterprise workflow, and currently one has to click 'Start Work', then change ticket state to 'In Work'. WPL should be configurable to automatically change ticket state to 'In Work' (or any other user-defined workflow state) instead of just 'assigned'

comment:2 Changed 7 years ago by coling

  • Status changed from new to assigned

Wow, sorry I didn't see this ticket.

Yes, I am fully intending to add workflow support to WorkLogPlugin. I've just not had much time recently for any of my plugins. I'll probably get some sort of "spurt" on soon :)

comment:3 Changed 6 years ago by christian.unger@…

any news here?

comment:4 Changed 6 years ago by coling

Hi Christian.

I did make a fair bit of headway here with a patch in my local checkout but I wasn't happy with how things were going and also had some interest from a another developer with a different approach to recording time and wanted to look into it.

So the short answer is there is no news (and sorry for not seeing your post ealier). I do hope to spend a little time tidying up my various plugins soon... but the best laid plans and all that ;)

comment:5 Changed 6 years ago by anonymous

I had to change some code to fix plugin workflow behaviour:

Index: worklog/manager.py
===================================================================
--- worklog/manager.py	(revision 5111)
+++ worklog/manager.py	(working copy)
@@ -129,8 +129,8 @@
             tckt = Ticket(self.env, ticket, db)
 
 
-        if 'assigned' != tckt['status']:
-            tckt['status'] = 'assigned'
+        if 'accepted' != tckt['status']:
+            tckt['status'] = 'accepted'
             self.save_ticket(tckt, db, 'Automatically accepting in order to start work.')
 
         # There is a chance the user may be working on another ticket at the moment

Add Comment

Modify Ticket

Action
as assigned The owner will remain coling.
Author


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

 
Note: See TracTickets for help on using tickets.