Feature #3436

Show relations in Gantt diagram

Added by Michael Diederich over 5 years ago. Updated almost 2 years ago.

Status:ClosedStart date:2009-06-02
Priority:NormalDue date:
Assignee:-% Done:

80%

Category:Gantt
Target version:2.3.0
Resolution:Fixed

Description

Hi,

I request a feature: Please show the relations, especially the blocks and dependencies, within the gantt diagram. Attached is a related screenshot, how I would like to see the result.

Thanks,

Michael

screenshot-gantt-ticket-relationsship.png (37.9 KB) Michael Diederich, 2009-06-02 12:27

gantt-relations-r10943.diff Magnifier (12 KB) Toshi MARUYAMA, 2012-12-05 11:49

gantt-relations-r10943.png (44 KB) Toshi MARUYAMA, 2012-12-05 11:49

gantt-relations-r10943-Ver2.diff Magnifier (11.8 KB) Toshi MARUYAMA, 2012-12-05 12:37

gantt-relations-r10973.diff Magnifier (12 KB) Toshi MARUYAMA, 2012-12-10 11:04

gantt-relations-r10973-V2.diff Magnifier (12 KB) Toshi MARUYAMA, 2012-12-10 13:17

gantt-relations-r11060.png (44.2 KB) Toshi MARUYAMA, 2012-12-20 07:43

gantt-relations-r11060.diff Magnifier (12.9 KB) Toshi MARUYAMA, 2012-12-20 07:43

gantt-relations-r11086.png (39.3 KB) Toshi MARUYAMA, 2012-12-28 05:27

gantt-relations-r11086.diff Magnifier (18.6 KB) Toshi MARUYAMA, 2012-12-28 05:27

ie7-issue-list.png (17.3 KB) Toshi MARUYAMA, 2013-01-05 08:45

ie8-gantt.png (24.1 KB) Toshi MARUYAMA, 2013-01-05 10:38

ie8-about.png (38 KB) Toshi MARUYAMA, 2013-01-05 10:38


Related issues

Related to Feature #549: Indicate issue dependencies in gantt Closed
Related to Feature #12122: Gantt progress lines (html only) Closed

Associated revisions

Revision 11118
Added by Jean-Philippe Lang almost 2 years ago

Show precedes/follows and blocks/blocked relations on the Gantt diagram (#3436).

Based on Toshi MARUYAMA's patch.

Revision 11119
Added by Jean-Philippe Lang almost 2 years ago

Use JSON so we don't have to parse data-rels manually (#3436).

Revision 11120
Added by Jean-Philippe Lang almost 2 years ago

Only process issues that have relations.

Revision 11123
Added by Jean-Philippe Lang almost 2 years ago

Adjust test for r11120 (#3436).

History

#1 Updated by Yohann Monnier over 5 years ago

+1 !

#2 Updated by Stavros Korokithakis over 5 years ago

Even if the relationships aren't shown, it would be immensely useful if the time dependencies were. For example, if issue A blocks B, issue B should start after A ends, not when it starts, like it is now.

#3 Updated by Ochir Abushinov about 5 years ago

  • Assignee set to Jean-Philippe Lang

yes, I would like to ask somebody of Redmine developers to implement this feature. My organization uses Redmine as project manager, and Gantt chart is only thing annoying us.
Could this feature be implemented in 0.8.6 version?

#4 Updated by Ochir Abushinov about 5 years ago

  • Assignee deleted (Jean-Philippe Lang)

#5 Updated by S Reid about 5 years ago

+1

#6 Updated by Ochir Abushinov about 5 years ago

Any news?

#7 Updated by Ochir Abushinov about 5 years ago

up

#8 Updated by Felix Faber over 4 years ago

+1

#9 Updated by sebastian ovide over 4 years ago

+1

#10 Updated by Mischa The Evil about 4 years ago

  • Category set to Gantt

#11 Updated by Paul H about 4 years ago

+1

#12 Updated by Sam Kuper about 4 years ago

+1

#13 Updated by Michalis Miatidis about 4 years ago

+N (N->oo)

#14 Updated by Kyle Plattner almost 4 years ago

+1 for me too

#15 Updated by Lionel TRESSENS almost 4 years ago

+ 1
Need funding to accelerate this enhancement ? Tell me, my company may possibly fund it.

#16 Updated by Mauro Gagna over 3 years ago

+1

#17 Updated by Luis Serrano Aranda over 3 years ago

Try the plugin better gantt char

#18 Updated by Fernando Hartmann over 3 years ago

+1

#19 Updated by Alexey Lazar over 2 years ago

Are there any plans to make this work?

#20 Updated by Oleg Kozlyuk about 2 years ago

+1

#21 Updated by Daniel Felix about 2 years ago

+1 from me too

#22 Updated by Toshi MARUYAMA almost 2 years ago

This is a patch for trunk r10943.

#23 Updated by Toshi MARUYAMA almost 2 years ago

Sorry, note-22 patch has wrong html table tag.
This patch removed it.
This patch is for trunk r10943.

#24 Updated by Etienne Massip almost 2 years ago

Nice work.

  • You can use content_opt[:data] = { 'rel-blocks' => v.join(',') } in helper and $(...).data('rel-blocks')
  • Typo landscape_mergin -> landscape_margin

Wouldn't be worth it/easier to maitain to make the whole Gantt a SVG graph?

#25 Updated by Toshi MARUYAMA almost 2 years ago

Etienne Massip wrote:

  • You can use content_opt[:data] = { 'rel-blocks' => v.join(',') } in helper and $(...).data('rel-blocks')
  • Typo landscape_mergin -> landscape_margin

Done.
And fixed JavaScript error when a issue does not have a bar (no start date or out range).

This is a patch for trunk r10973.

#26 Updated by Toshi MARUYAMA almost 2 years ago

I have removed unused variables from note-25 patch.

This is a patch for trunk r10973.

#27 Updated by Jean-Philippe Lang almost 2 years ago

  • Target version set to 2.3.0

Looks sweet!

But I don't think that displaying "related to", "copied to" or "duplicates" relations is that usefull. As request initially, I think we should only display "precedes" and "blocks" relations.

#28 Updated by Etienne Massip almost 2 years ago

Jean-Philippe Lang wrote:

Looks sweet!

But I don't think that displaying "related to", "copied to" or "duplicates" relations is that usefull. As request initially, I think we should only display "precedes" and "blocks" relations.

No, it should definitively not appear.
I think there should not be any possibility to select what relation types you want to show, just "precedes" and "blocks".

Not sure the foreach syntax for (rel_type_key in ...) {} is supported by IE7/8?

Finally, why not leave a permanent issue div class instead of removing a temporary todo class, which is a bit dirty?

#29 Updated by Toshi MARUYAMA almost 2 years ago

This is a patch for trunk r11060.

Etienne Massip wrote:

Jean-Philippe Lang wrote:

Looks sweet!

But I don't think that displaying "related to", "copied to" or "duplicates" relations is that usefull. As request initially, I think we should only display "precedes" and "blocks" relations.

No, it should definitively not appear.
I think there should not be any possibility to select what relation types you want to show, just "precedes" and "blocks".

Done.

Not sure the foreach syntax for (rel_type_key in ...) {} is supported by IE7/8?

Sorry, I have not tested yet.

Finally, why not leave a permanent issue div class instead of removing a temporary todo class, which is a bit dirty?

Sorry, could you tell me in more detail?

#30 Updated by Daniel Felix almost 2 years ago

Hi Toshi,

maybe there is a better way for displaying blocks.

Maybe some broken arrow or an dotted arrow? Those colors are nice, but you need to read those legend. If the arrow is selfexplaining, you haven't the risk that the user could misunderstand the colors (maybe after holidays or some longer field trip ;-) ).

What do you think about this?

Best regards,
Daniel

#31 Updated by Toshi MARUYAMA almost 2 years ago

Daniel Felix wrote:

Maybe some broken arrow or an dotted arrow?

Done.

This is a patch for trunk r11086.

#32 Updated by Daniel Felix almost 2 years ago

Hi Toshi,

this works still good in r11114.

Maybe this patch could be interessting for you #12730.
It also changes some parts of the gantt-modul. This could be combined with your new addition. Maybe both could be merged to trunk?

#33 Updated by Toshi MARUYAMA almost 2 years ago

Etienne Massip wrote:

Not sure the foreach syntax for (rel_type_key in ...) {} is supported by IE7/8?

I try this patch with IE7 on my Windows Vista.
This patch does not work.

Issue filter of trunk r11117 is broken on IE7.
I give up to run on IE7.

#34 Updated by Toshi MARUYAMA almost 2 years ago

I confirmed this patch works on IE8.

#35 Updated by Daniel Felix almost 2 years ago

Toshi MARUYAMA wrote:

I try this patch with IE7 on my Windows Vista.
This patch does not work.

Issue filter of trunk r11117 is broken on IE7.
I give up to run on IE7.

Hi Toshi,

I don't see this much critical. We could handle this as a graceful degradation. IE7 User won't have those relations. All newer Versions could handle it.
By the way, the IE 7 isn't supported by Microsoft anyway. This browser is going out of business. The most users will use a newer version of IE or another browser like Firefox, Chrome, Opera and so on.

See: http://theie7countdown.com/

#36 Updated by Jean-Philippe Lang almost 2 years ago

  • Status changed from New to Resolved
  • Resolution set to Fixed
I've committed Toshi's patch with a few changes:
  • removed the option to show/hide the relations, they are now always displayed
  • moved the rendering options from the IssueRelation model to the gantt helper
  • optimized the loading of relations (a single query instead of 1 query per issue)
  • optimized the parsing of data on the client side
  • restored the solid lines (which I personnaly find much cleaner)
  • added a functional test

Toshi, thanks for your work on this great improvement!

#37 Updated by Daniel Felix almost 2 years ago

Thanks a lot for this implementation (Toshi and Jean-Philippe)!
This is realy helpful in bigger projects with much depencies!

#38 Updated by Yasaf Burshan almost 2 years ago

Hi all,
How do I use this update on a windows machine with IIS?
When I run the patch command I'm getting an error message saying that asking what file I would like to update.
Any help is appreciated.
Thanks.

#39 Updated by Daniel Felix almost 2 years ago

Yasaf Burshan wrote:

Hi all,
How do I use this update on a windows machine with IIS?
When I run the patch command I'm getting an error message saying that asking what file I would like to update.
Any help is appreciated.
Thanks.

Check your patch file. Maybe the path to the file in the patch is another than in your current trunnk (example: patch say /trunk/... and your local repository starts with /redmine_trunk) or something like that.

You can also load a new version with the current trunk, which would be more stable than applying a single patch.

#40 Updated by Jean-Philippe Lang almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF