Gantt Chart for Mantis

General discussion of Mantis.

Moderators: Contributor, Developer

Gantt Chart for Mantis

Postby danieln » Mar 27, 2011 9:51 am

Hey
I have developed a plugin which is based on the jpgraph library which creates a gantt chart for Mantis.

At the organisation I work for, we use mantis as a task manager for all employees.

I am interested in sharing it with the Mantis community however I am concerned about not following all the Mantis Development conventions.

It is fairly customized but can be easily adopted for any use.

How should I go about uploading it etc.


Thanks
danieln
 
Posts: 1
Joined: Mar 23, 2011 5:30 am

Re: Gantt Chart for Mantis

Postby atrol » Mar 27, 2011 1:56 pm

A good place to host the source would be http://git.mantisforge.org
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6711
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Gantt Chart for Mantis

Postby cor3huis » Apr 10, 2011 4:05 pm

Have not seen it appearing in http://git.mantisforge.org/ It would be a waste isf all your hard work is not used and improved by other mantis users :( If you have any issues of how to do this let us know and we will guide you to uploading the plugin.
cor3huis
 
Posts: 21
Joined: Jan 15, 2010 4:24 pm

Re: Gantt Chart for Mantis

Postby cas » Apr 14, 2011 2:01 am

So is a step-by-step instruction guide available? :roll:
cas
 
Posts: 323
Joined: Mar 11, 2006 11:08 am

Re: Gantt Chart for Mantis

Postby maschneider » Apr 14, 2011 9:28 am

danieln

will be nice if you share this.
maschneider
 
Posts: 3
Joined: Apr 14, 2011 3:31 am

Re: Gantt Chart for Mantis

Postby AlainD. » Apr 14, 2011 4:26 pm

I'm also interested :-)
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 TomR » May 10, 2011 8:18 am

Is this already downloadable somewhere?
TomR
 
Posts: 48
Joined: Aug 01, 2006 5:22 am

Re: Gantt Chart for Mantis

Postby AlainD. » May 10, 2011 2:58 pm

Since we had no answer, I started to develop myself a plugin too based on gantt chart. I will git it on the plugin server as soon as possible. I'll let you know when it is available, and try to make a doc too (I'm afraid my code is not well commented for now).
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. » May 18, 2011 7:15 am

I tried to upload the plugin to the git.mantisforge.org repo but it failed from my office (proxy security settings maybe). I will try it later at home. In the meantime, I attached a zip file of it if you want to try it...

Feel free to feedback.
Attachments
gantt_api.zip
Patch correcting a problem with Mantis Due Date usage instead of custom field.
(5.81 KiB) Downloaded 731 times
MantisGanttChart.zip
MantisGanttChart Plugin zip file
(26.2 KiB) Downloaded 1190 times
Last edited by AlainD. on Mar 17, 2012 5:31 pm, edited 1 time in total.
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 cas » May 18, 2011 8:33 am

Alain,
I am not using custom fields , still i get the message "Custom field not found"
cas
 
Posts: 323
Joined: Mar 11, 2006 11:08 am

Re: Gantt Chart for Mantis

Postby AlainD. » May 18, 2011 8:54 am

I didn't try it much without custom field... I will try. Can you tell me what settings you used ?
This is mine: (or ch attachment)

Mantis Gantt Chart: Configuration
Show Gantt Roadmap On Off
Field to use for the end date Due Date Custom field
Custom field
Use a custom field as estimated start date On Off
Custom field for Start Date


Normally, the plugin should use custom field to build the gantt charts. If not, it should use the due date. But I maybe missed a check maybe when no estimated date field is provided...
I'll check it out.

Edit:
##########
Maybe I should add a note on how it calculates the dates...
- The bug list are retrieved from 2 options: or from the filter page (View Issues page), Or from a dedicated new menu "Gantt Chart Roadmap".
- From the "Gantt Chart Roadmap" menu, The gantt charts are build for a couple project/version.
- The start date of an activity is or the creation date, or the assigned date, or the estimated start date if available.
- For each bug: If the bug has not been assigned yet, it is considered as a not started activity (displayed as a MILESTONE type on the gantt chart)
- The end date the start date + estimated end date if still opened, or the resolution date if resolved.

Voilà.
Attachments
example_001.png
Example of gantt chart
example_001.png (16.69 KiB) Viewed 17759 times
bug_page.png
example of custom field to use
bug_page.png (11 KiB) Viewed 17759 times
config_page.png
config page example
config_page.png (13.53 KiB) Viewed 17759 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 AlainD. » May 23, 2011 4:11 am

I didn't manage to put it on the git server. I don't really know how to create a new project for my plugin, and upload it on the server. It's like I need some administrator password, or something. I'm waiting for Paul to give me some help on the procedure.
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 fman » Jul 09, 2011 8:27 am

I've following issue

1. created two custom fields (CF) of type DATE START DATE, END DATE
2. configure plugin to use these CF
3. Created project A with version 1
4. issue with START DATE 2011-07-01 END DATE 2011-07-02
5. assign issue to administrator
6- click on main menu bar on 'Gantt Chart Roadmap '
7. got page with 'Project A', version 1
8.click on version 1
9. got following JPGRAPH issue 'illegal sizes ' width =-132866', height=166

environment
last JPGRAPH for PHP 5
Fedora 14
LAMPP 1.7.2

Any hint ?

regards
fman
 
Posts: 8
Joined: Aug 01, 2005 2:38 am
Location: BRA - ITALY

Re: Gantt Chart for Mantis

Postby fman » Jul 09, 2011 1:14 pm

Solved ! was my fault because I've configured:

Use Case #1 - KO
Field to use for the end date YES -> give custom field named START DATE (type date)
Use a custom field as estimated start date YES
but LEAVE BLANK Custom field NAME
seems this combination is fatal !|!

Use Case #2 - KO
Field to use for the end date YES -> give custom field named START DATE (type date)
Use a custom field as estimated start date YES use a Custom field (type date)
seems this combination is fatal !|!


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.
fman
 
Posts: 8
Joined: Aug 01, 2005 2:38 am
Location: BRA - ITALY

Re: Gantt Chart for Mantis

Postby fonnnnnn » Jul 22, 2011 2:16 am

http://www.mantisbt.org/bugs/view.php?id=13169#c29261 i have my issue about your plugin installation ... please help me find out.

thanks.
fonnnnnn
 
Posts: 13
Joined: Mar 11, 2011 5:27 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 11 guests