Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use custom fields in Mantis' Roadmap?

Tags:

mantis

I'd like to have an effort estimate for upcoming versions of my software in its Roadmap in Mantis Bug Tracker.

I could figure out easily how to add a custom fields (integer type, called "days to complete") to issues, and how to show it on the "view issues" page. But I couldn't find out how to add something to the roadmap showing the sum of days to complete for non-resolved issues.

Is there a built-in way to do this? My guess is no, that would take some php coding inside Mantis. But maybe someone did that already?

Edit: I had a look at the Time Tracking feature. It doesn't look like what I want.

like image 345
Gabriel Avatar asked Oct 24 '22 23:10

Gabriel


1 Answers

The display of the Roadmap is driven by a Custom Function, which you can override in any way you see fit (and yes that means writing some PHP code, but without altering the MantisBT core).

To achieve what you want, you should override custom_function_default_roadmap_print_issue().

Please refer to the MantisBT documentation for further details.

like image 172
dregad Avatar answered Nov 14 '22 01:11

dregad