Page 1 of 1

Customizing severities per project in mantis

Posted: 23 Jul 2007, 14:10
by Yasser Elmankabady
Hello All,

My mantis instance has about 5 projects and I am working on customizing the severity fileds for one of these projects. I am unable to get this working so my first question is ..is this possible? Below is the code in the custom_strings_inc.php that I tried to use but it only works after login. If I logout, I won't be able to view the login page again as the helper_get_current_project() I am using is probably not the one I should be using. any ideas? Thanks a lot for your help on this.

if ( lang_get_current() === 'english' ) {
if (helper_get_current_project() == '7' )
$s_severity_enum_string = '40: Low, 50:Medium,60:High';
else
$s_severity_enum_string = '40:sev 4,50:sev 3,60:sev 2,70:sev 1';

Posted: 25 Jul 2007, 13:15
by deboutv
I don't think that's possible (at least not like that).

Posted: 27 Jul 2007, 21:58
by brazo
you can do that...

just add severity_enum_string with customization for each project in the mantis_config_table in the database specifying the project_id in the project_id field.

Posted: 01 Aug 2007, 06:23
by deboutv
And the translations?

Posted: 01 Aug 2007, 07:10
by vboctor
The per project configuration (in the database) can have the statuses used in each project.

Then the localization in custom_strings_inc.php can include the union of all these statuses.

This will only work assuming that the same status code is not used for two different statuses in different projects.