Page 2 of 5

Re: Gantt Chart for Mantis

Posted: 22 Aug 2011, 12:22
by gag
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 :-(


Thx for help...

Re: Gantt Chart for Mantis

Posted: 27 Feb 2012, 08:05
by robertbics
I m also getting the same

Please help me to solve this problem

Thanks in Advance

Re: Gantt Chart for Mantis

Posted: 27 Feb 2012, 08:17
by AlainD.
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.

Re: Gantt Chart for Mantis

Posted: 27 Feb 2012, 08:48
by AlainD.
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.

Re: Gantt Chart for Mantis

Posted: 16 Mar 2012, 22:00
by Elyes
Interesting plugin.
But I've got nothing (no error,Only empty page:
http://localhost/mantis/plugin.php?page ... inherited=)

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 06:35
by AlainD.
Can you email me your settings please so that I can understand? Thank you.

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 18:23
by Elyes
Hello
Thank you for your reply.
Below are my settings.
Mantis:1.2.8
OS: Windows XP
Database: MySQL

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 20:47
by AlainD.
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.

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 22:49
by Elyes
Hello,
Unfortunatly I'm using the Bundled graph library and not the JpGraph.
shall I add this last one?
Can you share it?

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 22:55
by AlainD.
The bundle graph does not include gantt charts api. The plugin is only usable with jpgraph! (http://jpgraph.net/ )

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 23:30
by Elyes
I've downloaded the JPGRAPH library and all is working fine now.
Many thanks for your help.

Re: Gantt Chart for Mantis

Posted: 17 Mar 2012, 23:36
by AlainD.
your welcome :-)

Re: Gantt Chart for Mantis

Posted: 18 Mar 2012, 00:17
by Elyes
I'm wondering whether we can add a legend to the GANTT graph (especially the colors)

Re: Gantt Chart for Mantis

Posted: 18 Mar 2012, 06:45
by AlainD.
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).

Re: Gantt Chart for Mantis

Posted: 19 Mar 2012, 16:44
by Elyes
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: