How can I configure Mantis to allow developers to create new version numbers?
Currently, the developer can only select existing version numbers from a predefined drop-down menu.
It's the developer, fixing bugs and generating a new software version, so should'nt he be able to add version numbers in Mantis?!
How to let Developer create new version numbers
Moderators: Developer, Contributor
Re: How to let Developer create new version numbers
Add the following line to file config_inc.php
Code: Select all
$g_manage_project_threshold = DEVELOPER;
Re: How to let Developer create new version numbers
I could only find "config_defaults_inc.php". Are you sure with "config_inc.php"?
In "config_defaults_inc.php" I already do have
Developer can only select defined version numbers but can't add version numbers here directly:
It would be a very tedious procedure if developer would have to switch between issue solving dialog to project configuration just to add a version number. We have hundreds of releases per year for multiple products.
In "config_defaults_inc.php" I already do have
Code: Select all
$g_manage_project_threshold = DEVELOPER;
It would be a very tedious procedure if developer would have to switch between issue solving dialog to project configuration just to add a version number. We have hundreds of releases per year for multiple products.
Re: How to let Developer create new version numbers
Complete sure.Knubbi wrote:Are you sure with "config_inc.php"?
You should never ever change "config_defaults_inc.php" as you might get problems after upgrading to a newer Mantis version.Knubbi wrote:In "config_defaults_inc.php" I already do haveCode: Select all
$g_manage_project_threshold = DEVELOPER;
Configuration is done in "config_inc.php" and in database using web ui.
Hundreds of releases per year? Really?Knubbi wrote:We have hundreds of releases per year for multiple products.
Maybe you mean builds? If so, the following setting might be useful for you.
Code: Select all
$g_enable_product_build = ON;
Re: How to let Developer create new version numbers
Thanks, followed all instructions. Wasn't aware about "product_build" which is what I need, indeed.
In my "/config/config_inc.php" now is:
and
However, when I try to close an issue, I am not able to enter any build version (which includes the bugfix) on page "bug_change_status_page.php":
Any clue?
In my "/config/config_inc.php" now is:
Code: Select all
$g_enable_product_build = ON;
Code: Select all
$g_bug_change_status_page_fields = array(
'attachments',
'category_id',
'date_submitted',
'description',
'due_date',
'eta',
'fixed_in_version',
'handler',
'id',
'last_updated',
'priority',
'product_build',
'product_version',
'project',
'projection',
'reporter',
'reproducibility',
'resolution',
'severity',
'status',
'summary',
'target_version',
'view_state',
);
Any clue?
Re: How to let Developer create new version numbers
There is just a field "product_build" available.
There is no field like "fixed_in_build". You could create a custom field for it.
BTW, $g_bug_change_status_page_fields is not the list of editable fields, it's the list of displayed fields below the form, see https://www.mantisbt.org/docs/master/en ... fig.fields
There is no field like "fixed_in_build". You could create a custom field for it.
BTW, $g_bug_change_status_page_fields is not the list of editable fields, it's the list of displayed fields below the form, see https://www.mantisbt.org/docs/master/en ... fig.fields