Customizing severities per project in mantis

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Yasser Elmankabady
Posts: 4
Joined: 29 May 2007, 19:34
Location: Toronto - Canada

Customizing severities per project in mantis

Post 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';
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

I don't think that's possible (at least not like that).
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
brazo
Posts: 1
Joined: 27 Jul 2007, 21:52

Post 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.
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

And the translations?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post 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.
Migrate your MantisBT to the MantisHub Cloud
Post Reply