REST Workflow Redux
Added by blake watson over 9 years ago
When you go into Redmine and edit a task, there is a place for the task's status.
Very often, displayed there is the default status, along with a dropdown containing all the possible statuses the user can legitimately change the task to.
I'm using Redmine from a REST API, and I am looking for a way to get that list of statuses. It might be something like "redmine/issues/statuses/###.json" or "redmine/issues/workflows/###.json"
I don't believe this part of the REST API exists. (If it does, please set me straight.)
So, now what? I've come up with two thoughts:
1) It looks like the *_new_statuses_allowed_to functions provide what I need. I could go into the code and expose that. But then I have to do all the stuff that goes along with branching. (Not the coding and testing but getting the modded code deployed, maintaining the branch, being incompatible with future Redmine upgrades, etc.)
2) Add a field to the project that basically allows a text representation of the Workflow page, something like:
[8 - 1]
[9 1 2,3]
[10 2 4]
[11 3 4]
[8 4 5]
Which would mean something like "Waiters (role ID 8) can place an order (1)", "Chefs (role ID 9) can send an order to the main kitchen (2) or the bakery (3)", "Cooks (role ID 10) can make an order for pickup (4)", "Bakers (role ID 11) can make an order for pickup (4)", "Waiters can deliver an order (5)".
Something like that. Cheesy, but requires minimal code disruption.
Any thoughts?
Replies (1)
RE: REST Workflow Redux - Added by blake watson over 9 years ago
Redmine's pretty much dead, isn't it? We've got three whole developers working on the project?