How to customize report issues for each project

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
malkevia
Posts: 5
Joined: 25 Apr 2014, 12:20

How to customize report issues for each project

Post by malkevia »

Hi,

I updated Mantis from a version 1.1.8 to 1.2.17. Before, I used myreport plugin to customize the report fields for each project.
Now, myreport plugin isn't supported anymore and I'd like to find another way to do the same.

I saw that we can configure a global parameter on the config_inc file but I haven't see something to distinguish project :

$g_bug_report_page_fields = array('category_id','view_state','reproducibility','summary','description','additional_info',
'attachments','due_date');

Can anyone help me please?

Regards
malkevia
Posts: 5
Joined: 25 Apr 2014, 12:20

Re: How to customize report issues for each project

Post by malkevia »

I did some test during the day and I maybe have a interesting workaround.

I did some tests on the "manage configuration" part.
I tried to add a new option named "bug_report_page_fields" linked to a particular project.
Concerning the value, I used an array (the same way as the line on the php file).

With this configuration, I can see that the report issue shows only global fields I chose + the custom fields associated on the project.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to customize report issues for each project

Post by atrol »

Example for a minimum report page:

Goto page: Manage > Manage Configuration
At the bottom of the page you will find a section: "Set Configuration Option"
Enter the following values:
Username: All Users
Project: Your Project
Configuration Option: bug_report_page_fields
Type: Complex
Value:
array (
1 => 'category_id',
2 => 'summary',
3 => 'description',
)

Click button: Set Configuration Option
Please use Search before posting and read the Manual
Post Reply