fman wrote:Solved ! was my fault because I've configured:
Use Case #3 - OK Field to use for the end date YES -> give custom field of TYPE NUMERIC Use a custom field as estimated start date YES
but LEAVE BLANK Custom field NAME WORKS OK
do not know there is an easy way to add some checks to give alert to user due to wrong config.
Is this really working? How to use numeric type field for date and gantt graphs?
If I am trying any combination described above I am getting blank page after click to version in Gantt Chart Roadmap
Strange...
I have the same config, and it's working...
I set my custom fields like this:
Estimated Duration ( as String )
Estimated Start Date ( as Date )
But now I read the note of gag, I remember having some trouble with date also once... I wonder I did not tweak some file somewhere to be able to handle date field. I will check this.
AlainD. ti lamp, ti lamp n'arivé! Mantis: 1.2.5 PHP: 5.2.0 OS: Linux (etch) Plugins: MantisGanttChart | Mantis Graphs | Source Control Integration | Subversion / WebSVN Integration
OK, here are some more information. I found that I had to modify something in the file core/custom_field_api.php in order to handle correctly my regular expression for MY Duration field. CF file attached.
Maybe that why I changed it to a string field instead...
I also attach how I set up my 2 custom fields. It might help.
So I think that the best config would be to use:
- A date type custom field for the start date
- A string type custom field for the Duration but using a regular expression for it.
I hope it helped. Let me know if you still experience some issues, but with more details.
Attachments
Custom Field Duration for the GanttChart plugin
Mantis_Plugin_Gantt_StartDate_Custom_Field_001.png (25.48 KiB) Viewed 30335 times
custom_field_api modification for numeric types
Mantis_Plugin_Gantt_Core_API_Tweak_Custom_Field_001.PNG (78.25 KiB) Viewed 30335 times
Custom Field Duration for the GanttChart plugin
Mantis_Plugin_Gantt_Duration_Custom_Field_001.png (25.94 KiB) Viewed 30335 times
AlainD. ti lamp, ti lamp n'arivé! Mantis: 1.2.5 PHP: 5.2.0 OS: Linux (etch) Plugins: MantisGanttChart | Mantis Graphs | Source Control Integration | Subversion / WebSVN Integration
OK, first, I've made a mistake in my plugin, in case of use of the Mantis Due Date instead of the custom field.
So I attach the patch. You can replace the file if you want, but in your case it is not to solve the issue you're experiencing.
I think it's something to do with your jpgraph installation. Here below a quick check list to verify that jpgraph is correctly installed on your system:
1) Check jpgraph is correctly installed, by browsing the following URL: http://<your.server>/mantis/plugin.php?page=MantisGraph/summary_jpgraph_page
You should see some graphs.
2) If you see no graphs, then check that your jpgraph APIs are installed under: ./mantis/libraires/jpgraph and not under ./mantis/libraries/jpgraph/src !
-> if the jpgraph api are still located in the subfolder src, then copy/cut all the src content and paste it directly under the jpgraph folder.
3) Check again http://<your.server>/mantis/plugin.php?page=MantisGraph/summary_jpgraph_page
4) Check the Gantt charts then.
Well, I can check but I'm pretty sure there is no option for that. And FYI, the colors are the same than the mantis tickets (you have that legend at the bottom of the view issues page, or my view page).
AlainD. ti lamp, ti lamp n'arivé! Mantis: 1.2.5 PHP: 5.2.0 OS: Linux (etch) Plugins: MantisGanttChart | Mantis Graphs | Source Control Integration | Subversion / WebSVN Integration
Hi again,
while testing I've noticed that the GANTT graph shows only issues taking place on working days.
To reproduce this malfunction I've created issues on Saturday and Sunday but the graph shows them on Monday.
WEIRD !
Please refer to the disply below: