Different statuses between update and "Change status to"
Moderators: Developer, Contributor
Different statuses between update and "Change status to"
Hi,
I'm trying to setup a mantis v.2.18.0.
Everything is almost done but I found a difference between the statuses I can pick when I click on "Modify" on a bug and the statutes I can pick when I use the "Change status to" on the same bug.
It's from the status "En Recette"
Here is when I modify :
Here is when I try to "Change status to" :
I have nothing in my mantis_config_table about the workflows, everything is setup using the config_mantis.php.
Here's my config_mantis.php file (about the workflows only, "35:enrecette" is the only we're looking for) :
/* Statuts - Workflow */
$g_status_enum_string = '10:new,11:incompletmetier,13:verifiemoa,14:verifiemoe,15:attenteissue,16:planifie,17:endeveloppement,22:corrige,35:enrecette,52:testreussi,53:ko,90:closed';
$g_status_enum_workflow[NEW_]='11:INCOMPLETMETIER,13:VERIFIEMOA,90:CLOSED';
$g_status_enum_workflow[INCOMPLETMETIER] ='10:NEW_,90:CLOSED';
$g_status_enum_workflow[VERIFIEMOA] ='10:NEW_,14:VERIFIEMOE,15:ATTENTEISSUE';
$g_status_enum_workflow[CORRIGE] ='17:ENDEVELOPPEMENT,35:ENRECETTE';
$g_status_enum_workflow[VERIFIEMOE] ='16:PLANIFIE';
$g_status_enum_workflow[ATTENTEISSUE] ='10:NEW_,14:VERIFIEMOE';
$g_status_enum_workflow[PLANIFIE] ='14:VERIFIEMOE,17:ENDEVELOPPEMENT';
$g_status_enum_workflow[ENDEVELOPPEMENT] ='15:ATTENTEISSUE,22:CORRIGE';
$g_status_enum_workflow[ENRECETTE] ='22:CORRIGE,52:TESTREUSSI,53:KO';
$g_status_enum_workflow[TESTREUSSI] ='10:NEW_,22:CORRIGE,90:CLOSED';
$g_status_enum_workflow[KO] ='10:NEW_';
$g_status_enum_workflow[CLOSED] ='';
Here's what it looks in the GUI :
Thanks for the help.
Feel free to ask for more details.
Kind regards
Jules
I'm trying to setup a mantis v.2.18.0.
Everything is almost done but I found a difference between the statuses I can pick when I click on "Modify" on a bug and the statutes I can pick when I use the "Change status to" on the same bug.
It's from the status "En Recette"
Here is when I modify :
Here is when I try to "Change status to" :
I have nothing in my mantis_config_table about the workflows, everything is setup using the config_mantis.php.
Here's my config_mantis.php file (about the workflows only, "35:enrecette" is the only we're looking for) :
/* Statuts - Workflow */
$g_status_enum_string = '10:new,11:incompletmetier,13:verifiemoa,14:verifiemoe,15:attenteissue,16:planifie,17:endeveloppement,22:corrige,35:enrecette,52:testreussi,53:ko,90:closed';
$g_status_enum_workflow[NEW_]='11:INCOMPLETMETIER,13:VERIFIEMOA,90:CLOSED';
$g_status_enum_workflow[INCOMPLETMETIER] ='10:NEW_,90:CLOSED';
$g_status_enum_workflow[VERIFIEMOA] ='10:NEW_,14:VERIFIEMOE,15:ATTENTEISSUE';
$g_status_enum_workflow[CORRIGE] ='17:ENDEVELOPPEMENT,35:ENRECETTE';
$g_status_enum_workflow[VERIFIEMOE] ='16:PLANIFIE';
$g_status_enum_workflow[ATTENTEISSUE] ='10:NEW_,14:VERIFIEMOE';
$g_status_enum_workflow[PLANIFIE] ='14:VERIFIEMOE,17:ENDEVELOPPEMENT';
$g_status_enum_workflow[ENDEVELOPPEMENT] ='15:ATTENTEISSUE,22:CORRIGE';
$g_status_enum_workflow[ENRECETTE] ='22:CORRIGE,52:TESTREUSSI,53:KO';
$g_status_enum_workflow[TESTREUSSI] ='10:NEW_,22:CORRIGE,90:CLOSED';
$g_status_enum_workflow[KO] ='10:NEW_';
$g_status_enum_workflow[CLOSED] ='';
Here's what it looks in the GUI :
Thanks for the help.
Feel free to ask for more details.
Kind regards
Jules
- Attachments
-
- workflow.PNG (4.38 KiB) Viewed 6938 times
-
- change_status_to.PNG (2.69 KiB) Viewed 6938 times
-
- modify_bug.PNG (6.24 KiB) Viewed 6938 times
Re: Different statuses between update and "Change status to"
You do need to check the workflow settings, that is where the subsequent statusses are being defined.
Default values you can find in config_defaults_inc.php
You can copy your settings into core/config_inc.php
Default values you can find in config_defaults_inc.php
You can copy your settings into core/config_inc.php
Re: Different statuses between update and "Change status to"
Hi,
I'm sorry but I forgot to mention that I copied and pasted the content of my config_mantis.php because my config_inc.php includes the config_mantis.php.
This config_mantis.php file is where I included the workflow definitions.
Kind regards
Jules
I'm sorry but I forgot to mention that I copied and pasted the content of my config_mantis.php because my config_inc.php includes the config_mantis.php.
This config_mantis.php file is where I included the workflow definitions.
Kind regards
Jules
Re: Different statuses between update and "Change status to"
Are you sure config_mantis.php is actually included?
Did you also follow the instructions for adding/changing the status list?
Did you also follow the instructions for adding/changing the status list?
Re: Different statuses between update and "Change status to"
Yes, sure.
Adding / changing the status list ??
What do you mean ?
Adding / changing the status list ??
What do you mean ?
Re: Different statuses between update and "Change status to"
Check out the chapter Enumerations in the mantis admin guide, page 81
Re: Different statuses between update and "Change status to"
I'm not exactly sure how it solves my problem.
My enumeration is correctly setup right ?
My enumeration is correctly setup right ?
Code: Select all
$g_status_enum_string = '10:new,11:incompletmetier,13:verifiemoa,14:verifiemoe,15:attenteissue,16:planifie,17:endeveloppement,22:corrige,35:enrecette,52:testreussi,53:ko,90:closed';
Re: Different statuses between update and "Change status to"
Well, did you created/updated custom_strings_inc.php and custom_constants_inc.php as described on page 82 of the manual?
Re: Different statuses between update and "Change status to"
(I did the same trick, I included the custom_strings_mantis.php in the custom_strings_inc.php and same with custom_constants_mantis.php & custom_constants_inc.php)
Yes :
(custom_strings_mantis.php)
And Yes :
(custom_constants_mantis.php)
Yes :
(custom_strings_mantis.php)
Code: Select all
$s_status_enum_string = '10:Ouvert,11:Incomplet Métier,13:Vérifié MOA,14:Vérifié MOE,15:Attente Issue,16:Planifié,17:En Développement,22:Corrigé,35:En Recette,52:Test Réussi,53:K.O.,90:Fermé';
(custom_constants_mantis.php)
Code: Select all
define( 'INCOMPLETMETIER', 11 );
define( 'VERIFIEMOA', 13 );
define( 'VERIFIEMOE', 14 );
define( 'ATTENTEISSUE', 15 );
define( 'PLANIFIE', 16 );
define( 'ENDEVELOPPEMENT', 17 );
define( 'CORRIGE', 22 );
define( 'ENRECETTE', 35 );
define( 'TESTREUSSI', 52 );
define( 'KO', 53 );
Re: Different statuses between update and "Change status to"
Apparently it does not work now, so I would suggest to follow the instructions given instead of using your own logic.
Re: Different statuses between update and "Change status to"
I have two mantis environments so sorry, I can't.
Also including a php into another one isn't something special (especially to manage different configurations).
Also including a php into another one isn't something special (especially to manage different configurations).
Re: Different statuses between update and "Change status to"
Indeed inclusions are quite normal but since whatever you have is not working, something is failing there.
In addition I am not aware of any bugs in this area so you review your solution or try it the way it has been described.
The latter is definately a good way of debugging your solution
In addition I am not aware of any bugs in this area so you review your solution or try it the way it has been described.
The latter is definately a good way of debugging your solution
Re: Different statuses between update and "Change status to"
I copied the contents of each file xxxxx_mantis.php into the original ones : xxxxx_inc.php but I still have the same problem :
I can use a workflow when I use "Modify" on a bug instead of using "Change status to" and it gives me an error when I use it (the different statuses in the "Change status to" is the correct one) :
<img>error_1303.PNG</img>
I can use a workflow when I use "Modify" on a bug instead of using "Change status to" and it gives me an error when I use it (the different statuses in the "Change status to" is the correct one) :
<img>error_1303.PNG</img>
- Attachments
-
- error_1303.PNG (18.14 KiB) Viewed 6836 times
Re: Different statuses between update and "Change status to"
Just to be sure, the old issue is gone but now you get error 1303 when using "change status"?
Re: Different statuses between update and "Change status to"
No, still the same problem. It did not change anything.
As I said, I get this error when I use "Modify" on a bug, then I select the status then I use "Update the info".
This is the original problem !
I got no clue what's going on, it seems like it's part of the remaining config (of my old mantis version, before upgrading)
As I said, I get this error when I use "Modify" on a bug, then I select the status then I use "Update the info".
This is the original problem !
I got no clue what's going on, it seems like it's part of the remaining config (of my old mantis version, before upgrading)