Gantt Chart for Mantis

General discussion of Mantis.

Moderators: Contributor, Developer

Re: Gantt Chart for Mantis

Postby gag » Aug 22, 2011 7:22 am

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...
gag
 
Posts: 1
Joined: Aug 22, 2011 6:54 am

Re: Gantt Chart for Mantis

Postby robertbics » Feb 27, 2012 3:05 am

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 8532 times
robertbics
 
Posts: 14
Joined: Feb 17, 2010 2:02 am

Re: Gantt Chart for Mantis

Postby AlainD. » Feb 27, 2012 3:17 am

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: Mar 23, 2011 9:30 am
Location: Bruxelles

Re: Gantt Chart for Mantis

Postby AlainD. » Feb 27, 2012 3:48 am

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
Mantis_Plugin_Gantt_StartDate_Custom_Field_001.png
Custom Field Duration for the GanttChart plugin
Mantis_Plugin_Gantt_StartDate_Custom_Field_001.png (25.48 KiB) Viewed 8532 times
Mantis_Plugin_Gantt_Core_API_Tweak_Custom_Field_001.PNG
custom_field_api modification for numeric types
Mantis_Plugin_Gantt_Core_API_Tweak_Custom_Field_001.PNG (78.25 KiB) Viewed 8532 times
Mantis_Plugin_Gantt_Duration_Custom_Field_001.png
Custom Field Duration for the GanttChart plugin
Mantis_Plugin_Gantt_Duration_Custom_Field_001.png (25.94 KiB) Viewed 8532 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
AlainD.
 
Posts: 57
Joined: Mar 23, 2011 9:30 am
Location: Bruxelles

Re: Gantt Chart for Mantis

Postby Elyes » Mar 16, 2012 5:00 pm

Interesting plugin.
But I've got nothing (no error,Only empty page:
http://localhost/mantis/plugin.php?page ... inherited=)
Elyes
 
Posts: 38
Joined: Feb 21, 2012 8:31 am

Re: Gantt Chart for Mantis

Postby AlainD. » Mar 17, 2012 1:35 am

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

Re: Gantt Chart for Mantis

Postby Elyes » Mar 17, 2012 1:23 pm

Hello
Thank you for your reply.
Below are my settings.
Mantis:1.2.8
OS: Windows XP
Database: MySQL
Attachments
StartDate.JPG
Start Date
StartDate.JPG (44.32 KiB) Viewed 8484 times
Estimated Duration.JPG
Estimated Duration
Estimated Duration.JPG (41.62 KiB) Viewed 8484 times
Plugin_GANTT.JPG
Mantis Gantt Chart: Configuration
Plugin_GANTT.JPG (37.76 KiB) Viewed 8484 times
Elyes
 
Posts: 38
Joined: Feb 21, 2012 8:31 am

Re: Gantt Chart for Mantis

Postby AlainD. » Mar 17, 2012 3:47 pm

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 434 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
AlainD.
 
Posts: 57
Joined: Mar 23, 2011 9:30 am
Location: Bruxelles

Re: Gantt Chart for Mantis

Postby Elyes » Mar 17, 2012 5:49 pm

Hello,
Unfortunatly I'm using the Bundled graph library and not the JpGraph.
shall I add this last one?
Can you share it?
Elyes
 
Posts: 38
Joined: Feb 21, 2012 8:31 am

Re: Gantt Chart for Mantis

Postby AlainD. » Mar 17, 2012 5:55 pm

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

Re: Gantt Chart for Mantis

Postby Elyes » Mar 17, 2012 6:30 pm

I've downloaded the JPGRAPH library and all is working fine now.
Many thanks for your help.
Elyes
 
Posts: 38
Joined: Feb 21, 2012 8:31 am

Re: Gantt Chart for Mantis

Postby AlainD. » Mar 17, 2012 6:36 pm

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

Re: Gantt Chart for Mantis

Postby Elyes » Mar 17, 2012 7:17 pm

I'm wondering whether we can add a legend to the GANTT graph (especially the colors)
Elyes
 
Posts: 38
Joined: Feb 21, 2012 8:31 am

Re: Gantt Chart for Mantis

Postby AlainD. » Mar 18, 2012 1:45 am

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

Re: Gantt Chart for Mantis

Postby Elyes » Mar 19, 2012 11:44 am

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
GANTT Test.JPG
Issues on Week End
GANTT Test.JPG (27.19 KiB) Viewed 8463 times
Elyes
 
Posts: 38
Joined: Feb 21, 2012 8:31 am

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 12 guests