Page 1 of 1

Add Classification field

Posted: 17 Mar 2011, 07:14
by HomesicK
Dear All

Reference to the subject I would like to ask if I could add classification field in "Report issue Page" this means when the user wanna report an issue he/she should select what is the classification of the bug (eg: Design, buisness , technical ..etc) that means to classify the issue itself.

So please help how could I add such filed in the mantis tool.

Thanks,

My Mantis version is : 1.2.4
PHP version 5.2.6

Re: Add Classification field

Posted: 17 Mar 2011, 08:05
by atrol
Use "Manage" -> "Manage Custom Fields" and create a field of type enum
http://docs.mantisbt.org/master/en/admi ... STOMFIELDS

Re: Add Classification field

Posted: 17 Mar 2011, 09:15
by HomesicK
My friend How r u ,,

Do u remember me ,, am the one who do not trust his developers :P

Any ways, thx very much for your reply

I did add a custom filed ,, but how could I sort all the fields now ,, for example the custom field be first then the severity then the priority ...etc

Thanks in advance :)

Re: Add Classification field

Posted: 17 Mar 2011, 13:41
by atrol
HomesicK wrote: Do u remember me ,, am the one who do not trust his developers :P
No chance to forget you!

There is no customization option for this.
At the moment it's hardcoded that the custom fields appear below the standard fields when reporting issues.
Someone provided a patch to place the fields above, but the patch is for older versions and might not work with current version.
http://www.mantisbt.org/bugs/view.php?id=11385

If you would trust at least one of your developers, maybe he could tweak the source code.

Future versions of MantisBT will support such customizing without changing the source code, but it's a long way to go.

Re: Add Classification field

Posted: 22 Mar 2011, 10:29
by HomesicK
Thanks my friend for your kind help :)

I did it by changing the code in the bug_report_page.php page :D