Workflow doesn't work fine

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
marshal.john
Posts: 6
Joined: 22 Mar 2010, 18:12

Workflow doesn't work fine

Post by marshal.john »

Hello to everyone,
I've some problem with workflow. The status enabled are the following one: 10:new,20:feedback,30:analysis,40:confirmed,50:assigned,80:resolved,90:closed
My problem is that it's not possible to goback to NEW status even if it has been selected from the drop down list.
I also tried to force the work flow into the file config_inc.php in following way

$g_status_enum_workflow[FEEDBACK] = '10:new,20:feedback,30:analysis,40:confirmed,50:assigned,80:resolved,90:closed';
$g_status_enum_workflow[ANALYSIS] = '10:new,20:feedback,30:analysis,40:confirmed,50:assigned,80:resolved,90:closed';

as suggested here http://www.mantisbt.org/manual/manual.c ... values.php and also into the file configt_default_inc.php (commented rows), but it doesn't work.

Can anyone help me, please?
Thanks a lot
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Workflow doesn't work fine

Post by atrol »

marshal.john wrote: My problem is that it's not possible to goback to NEW status even if it has been selected from the drop down list.
Do you get an error message?
Please use Search before posting and read the Manual
marshal.john
Posts: 6
Joined: 22 Mar 2010, 18:12

Re: Workflow doesn't work fine

Post by marshal.john »

No error message are shown. Just wrong behaviour :cry:
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Workflow doesn't work fine

Post by atrol »

Start without your changes in config_inc.php
Have a look at [Manage] -> [Manage Configuration] -> [Workflow Transitions]
Is there all OK and how you expected?
Please use Search before posting and read the Manual
marshal.john
Posts: 6
Joined: 22 Mar 2010, 18:12

Re: Workflow doesn't work fine

Post by marshal.john »

Hi,

below what is shown at that page.

Current status | New |Feedback|Analysis |Assigned |Resolved |Closed
---------------------------------------------------------------------------------------------
New (N) | | | | | |
---------------------------------------------------------------------------------------------
Feedback (F) | N x | | A x | A x | R x | C x
---------------------------------------------------------------------------------------------
Analysis (A) | N x | F x | | A x | R x | C x
---------------------------------------------------------------------------------------------
Assigned (A) | | | | | |
---------------------------------------------------------------------------------------------
Resolved (F) | | F x | | | |
---------------------------------------------------------------------------------------------
Closed (C) | | F x | | | |
---------------------------------------------------------------------------------------------
It's strange because if I understand right it seem that it's possible to jump into new state just if check box is enabled. So, it would means that if fault is in state Feedback it's possible to move to New state whereas if state's fault is Assigned it's not possible to move to Resolved. But this is not the actual behaviour: I cannot move to New from Feedback or Analysis and I can move from Assigned to Resolved.

Another update that can be useful. It's possible to select state NEW from the drop down list. Then the bug_change_status_page.php shows correct title and button name "New Issue" but than the final state assigned to the fault is ASSIGNED. So... it seems something related to the wrong passage by value between variables.

Thanks a lot
Post Reply