Opened 10 years ago

Integration with Workflow

Reported by: Owned by: hw@… normal WorkLogPlugin normal Workflow, WorkLogPlugin 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

comment:1 Changed 9 years ago by Peter

Trac Release: 0.10 → 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 9 years ago by Colin Guthrie

Status: new → 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 :)

any news here?

comment:4 Changed 8 years ago by Colin Guthrie

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 8 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


comment:6 Changed 4 months ago by Ryan J Ollos

Owner: Colin Guthrie deleted assigned → new

Modify Ticket

Change Properties