Gantt Chart for Mantis

General discussion of Mantis.

Moderators: Developer, Contributor

gag
Posts: 1
Joined: 22 Aug 2011, 11:54

Re: Gantt Chart for Mantis

Post 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...
robertbics
Posts: 14
Joined: 17 Feb 2010, 07:02

Re: Gantt Chart for Mantis

Post by robertbics »

I m also getting the same

Please help me to solve this problem

Thanks in Advance
Attachments
Image 3.png
Image 3.png (6.21 KiB) Viewed 110828 times
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post 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.
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
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post 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.
Attachments
Custom Field Duration for the GanttChart plugin
Custom Field Duration for the GanttChart plugin
Mantis_Plugin_Gantt_StartDate_Custom_Field_001.png (25.48 KiB) Viewed 110828 times
custom_field_api modification for numeric types
custom_field_api modification for numeric types
Mantis_Plugin_Gantt_Core_API_Tweak_Custom_Field_001.PNG (78.25 KiB) Viewed 110828 times
Custom Field Duration for the GanttChart plugin
Custom Field Duration for the GanttChart plugin
Mantis_Plugin_Gantt_Duration_Custom_Field_001.png (25.94 KiB) Viewed 110828 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
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Gantt Chart for Mantis

Post by Elyes »

Interesting plugin.
But I've got nothing (no error,Only empty page:
http://localhost/mantis/plugin.php?page ... inherited=)
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

Can you email me your settings please so that I can understand? Thank you.
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
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Gantt Chart for Mantis

Post by Elyes »

Hello
Thank you for your reply.
Below are my settings.
Mantis:1.2.8
OS: Windows XP
Database: MySQL
Attachments
Start Date
Start Date
StartDate.JPG (44.32 KiB) Viewed 110780 times
Estimated Duration
Estimated Duration
Estimated Duration.JPG (41.62 KiB) Viewed 110780 times
Mantis Gantt Chart: Configuration
Mantis Gantt Chart: Configuration
Plugin_GANTT.JPG (37.76 KiB) Viewed 110780 times
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post 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.
Attachments
gantt_api.zip
gantt_api.php patch correcting an issue with Mantis Due Date.
(5.81 KiB) Downloaded 4663 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
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Gantt Chart for Mantis

Post 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?
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

The bundle graph does not include gantt charts api. The plugin is only usable with jpgraph! (http://jpgraph.net/ )
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
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Gantt Chart for Mantis

Post by Elyes »

I've downloaded the JPGRAPH library and all is working fine now.
Many thanks for your help.
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

your welcome :-)
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
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Gantt Chart for Mantis

Post by Elyes »

I'm wondering whether we can add a legend to the GANTT graph (especially the colors)
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post 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).
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
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Gantt Chart for Mantis

Post 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:
Attachments
Issues on Week End
Issues on Week End
GANTT Test.JPG (27.19 KiB) Viewed 110759 times
Post Reply