Page 1 of 1

Workflow: close by Manager

Posted: 22 Feb 2005, 19:00
by mikewhit
Has anyone done a mod to ensure that an issue can only be closed by (e.g.) a Manager ?

I have inserted the mods from the manual page to implement rudimentary workflow, and would like to have a restriction that meant that an issue could not be closed by just anyone. This is to enforce a signoff procedure.

Otherwise I'll start digging in the source ...

Thx.

Posted: 22 Feb 2005, 23:58
by thraxisp
You can do this already in 0.19.2. Look at $g__set_status_threshold. Setting this to array( CLOSED=>MANAGER) will only allow managers to close the issue.

The full workflow implementation is also in 0.19.2. See $g_status_enum_workflow in the manual.

Ta

Posted: 23 Feb 2005, 09:01
by mikewhit
Thanks for that.

No doubt one day all these $g_ 'tweaks' will be exposed on an Administrator's 'Manage Configuration' page.

How about a section in the Manual e.g. 'How to set up Workflow' ?

The thinking behind this and other features could be described, to allow more use to be made of them.

Currently only the actual variables are documented in the Manual, which does not give much insight ...

Posted: 23 Feb 2005, 12:53
by thraxisp
Actually, I'm working on that now. We are moving much of the active configuration to the database. New UIs are being created to manage the settings.

Excellent ....

Posted: 23 Feb 2005, 15:59
by mikewhit
That sounds good - definitely the way to go.

I hope that the email permission setting (including domain filtering) is moved to the DB too, see my recent Note in http://bugs.mantisbt.org/view.php?id=2609

With all those settings in global variables, it takes me back to some old Basic programs I had to rewrite once ;-) though I haven't worked in PHP so maybe that's the style ?

Keep up the good work.

Posted: 23 Feb 2005, 16:30
by thraxisp
You can look at #4416 for an example.