How to customize report issues for each project

Post about your customizations to share with others.

Moderators: Contributor, Developer

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

How to customize report issues for each project

Post by malkevia » Aug 12, 2014 4:25 am

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: Apr 25, 2014 7:20 am

Re: How to customize report issues for each project

Post by malkevia » Aug 13, 2014 9:25 am

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: 7526
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: How to customize report issues for each project

Post by atrol » Aug 13, 2014 1:50 pm

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