Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom status in Mantis Bug Tracker

I want to add a custom status to Mantis Bug tracker called "On Hold". Following some blogs I found online, I added the following lines to config_local.php:

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,55:onhold,80:resolved,90:closed';
$g_status_colors['onhold'] = '#cceedd';
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,55:onhold,80:resolved,90:closed';

However, when I go to assign this status to a bug, it displays as @55@ in the drop down.

Any ideas why this might be?

like image 408
Daniel Avatar asked May 09 '12 21:05

Daniel


People also ask

Is Mantis a bug tracking tool?

Mantis Bug Tracker is a free and open source, web-based bug tracking system. The most common use of MantisBT is to track software defects. However, MantisBT is often configured by users to serve as a more generic issue tracking system and project management tool.

How does Mantis Bug Tracker work?

It allows a user to add a number of plugins for adapting various functionalities of the application subjected for testing. Mantis provides project-level access to the bugs which are being worked on the tool and also supports all the major system platforms, such as Windows, Android, iOS, etc.


1 Answers

See the Mantis reference on customising status values:

Define a constant to map the new status to.In a new file custom_constants_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
$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.

like image 135
Robert Munteanu Avatar answered Sep 29 '22 12:09

Robert Munteanu