Hi,
I would like to add a level called "Enhancement" to the Severity field. Has anyone done this or something similiar and could help?
Thanks.
Customize Severity?
Moderators: Developer, Contributor
adding new severity level
In constant_inc.php search for severity and add your define
In config_inc.php search $g_severity_enum_string and add the description
In strings_yourlanguage.txt search $s_severity_enum_string and add the translation
After that you should search all files in your mantis directory to see if new added severity will not damage the application
:)
Ta Daaa
MTW
In config_inc.php search $g_severity_enum_string and add the description
In strings_yourlanguage.txt search $s_severity_enum_string and add the translation
After that you should search all files in your mantis directory to see if new added severity will not damage the application
:)
Ta Daaa
MTW
Hi,
I mean that I do not know all the mantis application in detail, in this particular case I have no idea of where and how the severity field is used/tested if it is treated as a string or a integer and so on..
so any modification could introduce new bugs.
You should check yourself to see if your customization will interact with some other mantis code
example:
If, for some reasons, there is a fixed structure of n elements to load the descriptions, adding one or more to the list will raise some errors..
(this is only an example)
byez
MTW
I mean that I do not know all the mantis application in detail, in this particular case I have no idea of where and how the severity field is used/tested if it is treated as a string or a integer and so on..
so any modification could introduce new bugs.
You should check yourself to see if your customization will interact with some other mantis code
example:
If, for some reasons, there is a fixed structure of n elements to load the descriptions, adding one or more to the list will raise some errors..
(this is only an example)
byez
MTW
So long as you add the severity correctly, there won't be a problem.
The only thing you really need to be sure to do is to assign a new value to the severity (do not 'bump' another one). The database stores all of it's severities as an integer. That means that whilever you're adding severities with new integer values there won't be a problem.
Hope that helps.
The only thing you really need to be sure to do is to assign a new value to the severity (do not 'bump' another one). The database stores all of it's severities as an integer. That means that whilever you're adding severities with new integer values there won't be a problem.
Hope that helps.
I make the following changes, but I still not seeing the dropdown list changes when I submit a bug form. Any advice is appreciated.
Regards,
Fred
core/constant_inc.php
# severity
define( 'SUGGESTION', 10 );
define( 'LOW', 20 );
define( 'MEDIUM', 30 );
define( 'HIGH', 40 );
define( 'SHOWSTOPPER', 50 );
config_defaults_inc.php
$g_severity_enum_string = '10:suggestion,20:low,30:medium,40:high,50:showstopper';
lang/strings_english.txt
$s_severity_enum_string = '100:suggestion,110:low,120:medium,130:high,140:showstopper';
Regards,
Fred
core/constant_inc.php
# severity
define( 'SUGGESTION', 10 );
define( 'LOW', 20 );
define( 'MEDIUM', 30 );
define( 'HIGH', 40 );
define( 'SHOWSTOPPER', 50 );
config_defaults_inc.php
$g_severity_enum_string = '10:suggestion,20:low,30:medium,40:high,50:showstopper';
lang/strings_english.txt
$s_severity_enum_string = '100:suggestion,110:low,120:medium,130:high,140:showstopper';
Since there is already a "feature" selection under the severity menu, maybe all you want to do is rename that to "Enhancement", as opposed to ADDing another field (since they mean the same thing anyway). In this case the job is distgustingly simple, so for example I did the following to customize:
...mantis/lang/strings_english.txt -- line 287:
$s_severity_enum_string = '10:Enhancement,20:trivial,30:text,40:Minor,50:Moderate,60:Serious,70:Crash,80:block';
...mantis/lang/strings_english.txt -- line 287:
$s_severity_enum_string = '10:Enhancement,20:trivial,30:text,40:Minor,50:Moderate,60:Serious,70:Crash,80:block';