Gantt Chart for Mantis

General discussion of Mantis.

Moderators: Developer, Contributor

danieln
Posts: 1
Joined: 23 Mar 2011, 10:30

Gantt Chart for Mantis

Post by danieln »

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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Gantt Chart for Mantis

Post by atrol »

A good place to host the source would be http://git.mantisforge.org
Please use Search before posting and read the Manual
cor3huis
Posts: 21
Joined: 15 Jan 2010, 21:24

Re: Gantt Chart for Mantis

Post by cor3huis »

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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Gantt Chart for Mantis

Post by cas »

So is a step-by-step instruction guide available? :roll:
maschneider
Posts: 3
Joined: 14 Apr 2011, 08:31

Re: Gantt Chart for Mantis

Post by maschneider »

danieln

will be nice if you share this.
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

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
TomR
Posts: 55
Joined: 01 Aug 2006, 10:22

Re: Gantt Chart for Mantis

Post by TomR »

Is this already downloadable somewhere?
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

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

Re: Gantt Chart for Mantis

Post by AlainD. »

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 2506 times
MantisGanttChart.zip
MantisGanttChart Plugin zip file
(26.2 KiB) Downloaded 2966 times
Last edited by AlainD. on 17 Mar 2012, 22:31, 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
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Gantt Chart for Mantis

Post by cas »

Alain,
I am not using custom fields , still i get the message "Custom field not found"
AlainD.
Posts: 57
Joined: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

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 of gantt chart
Example of gantt chart
example_001.png (16.69 KiB) Viewed 90376 times
example of custom field to use
example of custom field to use
bug_page.png (11 KiB) Viewed 90376 times
config page example
config page example
config_page.png (13.53 KiB) Viewed 90376 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: 23 Mar 2011, 14:30
Location: Bruxelles
Contact:

Re: Gantt Chart for Mantis

Post by AlainD. »

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

Re: Gantt Chart for Mantis

Post by fman »

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: 01 Aug 2005, 07:38
Location: BRA - ITALY

Re: Gantt Chart for Mantis

Post by fman »

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.
fonnnnnn
Posts: 13
Joined: 11 Mar 2011, 10:27

Re: Gantt Chart for Mantis

Post by fonnnnnn »

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

thanks.
Post Reply