The default is no workflow, where all states are accessible from any others. The following example can be transferred to config_inc.php. The workflow needs to have a path from the statuses greater than or equal to the resolved state back to the feedback state. Otherwise, the re-open operation won't work.
$g_status_enum_workflow[NEW_]= '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[FEEDBACK] = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[ACKNOWLEDGED] = '20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[CONFIRMED] = '20:feedback,40:confirmed,50:assigned,80:resolved'; $g_status_enum_workflow[ASSIGNED] = '20:feedback,50:assigned,80:resolved,90:closed'; $g_status_enum_workflow[RESOLVED] = '50:assigned,80:resolved,90:closed'; $g_status_enum_workflow[CLOSED] = '50:assigned'; |
To add a status:
Define a constant to map the new status to.In a new file custom_constant_inc.php in the main mantisbt directory:
<?php define ( 'TEST', 60 ); ?> |
Define the language strings required. This may need to be defined in several languages.In a new file custom_strings_inc.php in the main mantisbt directory:
<?php if ( lang_get_current() == 'german' ) { $s_status_enum_string = '10:neu,20:R�ckmeldung,30:anerkannt,40:best‰tigt,50:zugewiesen, 60:zu testen,80:behoben,90:geschlossen'; } else { $s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:to be tested,80:resolved,90:closed'; $s_to_be_tested_bug_button = "Issue Ready to Test"; $s_to_be_tested_bug_title = "Set Issue Ready to Test"; $s_email_notification_title_for_status_bug_to_be_tested = "The following issue is ready TO BE TESTED."; } ?> |
Define any configurations required.In the existing file config_inc.php in the main mantisbt directory:
$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, 60:to be tested,80:resolved,90:closed'; # Status color additions $g_status_colors['to be tested'] = '#ACE7AE'; |
Add the status to any workflow defined.In config_inc.php:
$g_status_enum_workflow[NEW_]= '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:to be tested'; $g_status_enum_workflow[FEEDBACK] = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:to be tested'; $g_status_enum_workflow[ACKNOWLEDGED] = '20:feedback,30:acknowledged,40:confi rmed,50:assigned,60:to be tested'; $g_status_enum_workflow[CONFIRMED] = '20:feedback,40:confirmed,50:assigned,60:to be tested'; $g_status_enum_workflow[ASSIGNED] = '20:feedback,50:assigned,60:to be tested,90:closed'; $g_status_enum_workflow[TEST] = '10:new,20:feedback,50:assigned,60:to be tested,80:resolved,90:closed'; $g_status_enum_workflow[RESOLVED] = '50:assigned,60:to be tested,80:resolved,90:closed'; $g_status_enum_workflow[CLOSED] = '50:assigned,90:closed'; |