Feature #6417

Allow collapse/expand in gantt chart

Added by N G almost 9 years ago. Updated 3 months ago.

Status:ClosedStart date:2010-09-16
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Gantt
Target version:4.1.0
Resolution:Fixed

Description

Eric - it would be great if there was a way to collapse nested structures in the Gantt chart plugin you developed.. for example, if we don't want to see all the tasks/bugs for our versions, but just want a high level picture of what's coming up, it would be nice to be able to collapse each version to a single row that shows the due date for the version. Possible? Thanks!

expand_gantt.png (346 KB) Yuichi HARADA, 2019-01-31 03:27

collapse_gantt.png (293 KB) Yuichi HARADA, 2019-01-31 03:28

6417-collapse-expand-gantt.patch Magnifier (11.1 KB) Yuichi HARADA, 2019-01-31 03:38

virtical-alignment@2x.png (23.8 KB) Go MAEDA, 2019-02-25 14:02

6417-collapse-expand-gantt-v2.patch Magnifier (11.3 KB) Yuichi HARADA, 2019-03-04 05:39

6417-collapse-expand-gantt-v3.patch Magnifier (12.5 KB) Yuichi HARADA, 2019-03-05 03:42


Related issues

Related to Redmine - Feature #8897: Be able to reorder tasks/issues in the Gantt chart New 2011-07-25
Duplicated by Redmine - Feature #13063: Make Gantt chart issues collapsible Closed
Duplicated by Redmine - Feature #11636: tree structure of Gantt Closed
Duplicated by Redmine - Feature #26467: expand & collapse gantt chart list Closed

Associated revisions

Revision 17925
Added by Go MAEDA 4 months ago

Allow collapse/expand in gantt chart (#6417).

Patch by Yuichi HARADA.

Revision 17926
Added by Go MAEDA 4 months ago

Reverted r17925 (#6417). The change breaks GanttHelperTest.

Revision 17929
Added by Go MAEDA 4 months ago

Allow collapse/expand in gantt chart (#6417).

Patch by Yuichi HARADA.

History

#1 Updated by Eric Davis almost 9 years ago

  • Category set to Gantt
  • Assignee deleted (Eric Davis)

It would be possible but it will take a lot of work because of how the Gantt chart is rendered. If someone wants to work on this, I'd be happy to review a patch for it.

#2 Updated by Hans Bangkok over 8 years ago

+1 I've got a lot of Versions (non-software PM "milestones")

At least being able to collapse the Roadmap's version sections would be start - and probably easier?

#3 Updated by Pierluigi Soana almost 8 years ago

+1

#4 Updated by Artem Tykhonov about 7 years ago

+1

#5 Updated by Cassiano Monteiro about 7 years ago

+1!

#6 Updated by Terence Mill about 7 years ago

+1

#7 Updated by Robert Johnson about 7 years ago

+1

#9 Updated by Dipan Mehta over 6 years ago

This is a duplication of #1294 which is closed in favor of #12032 + #10525.

#10 Updated by Toshi MARUYAMA over 6 years ago

Dipan Mehta wrote:

This is a duplication of #1294 which is closed in favor of #12032 + #10525.

No. This issue is "collapse/expand in Gantt chart" like Redmine SCM browser.

#11 Updated by Toshi MARUYAMA about 5 years ago

#12 Updated by Toshi MARUYAMA about 5 years ago

  • Related to Feature #8897: Be able to reorder tasks/issues in the Gantt chart added

#13 Updated by James H over 4 years ago

+1

#14 Updated by Alexander Mikheyev over 3 years ago

Hi all,
is any progress on collapse/expand Gantt tasks hierarchy?

#15 Updated by Florian Riedel over 2 years ago

+1

#16 Updated by Mischa The Evil almost 2 years ago

  • Duplicated by Feature #26467: expand & collapse gantt chart list added

#17 Updated by Randa Bustami almost 2 years ago

Hi All,
is there a chance to make it soon pls ?

#18 Updated by Mizuki ISHIKAWA over 1 year ago

+1

#19 Updated by Yuichi HARADA 5 months ago

I created the function collapse/expand of the Gantt chart.
I attached a patch.

[Expand]

[Collapse]

#20 Updated by Go MAEDA 5 months ago

  • Target version set to Candidate for next major release

#21 Updated by Go MAEDA 4 months ago

  • Target version changed from Candidate for next major release to 4.1.0

LGTM. It is an excellent improvement. Setting the target version to 4.1.0.

#22 Updated by Go MAEDA 4 months ago

After applying the patch, objects in the same indentation level are not horizontally aligned. Please see the screenshot below. Could you check the patch?

#23 Updated by Yuichi HARADA 4 months ago

Go MAEDA wrote:

After applying the patch, objects in the same indentation level are not horizontally aligned. Please see the screenshot below. Could you check the patch?

I adjusted the horizontal position. #html_subject method's params is the Hash object. Because we inherited params[:indent] (Horizontal position), the calculation result of params[:indent] of the new parent hierarchy was wrong.
I rebuilt the patch.

#24 Updated by Go MAEDA 4 months ago

I confirmed that all issues in the previous patch have been fixed. Thank you for working on this. I will commit this patch within a few days.

#25 Updated by Go MAEDA 4 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

#26 Updated by Go MAEDA 4 months ago

  • Subject changed from Allow collapse/expand in Gantt chart to Allow collapse/expand in gantt chart

#27 Updated by Go MAEDA 4 months ago

  • Status changed from Closed to Reopened
  • Resolution deleted (Fixed)

The patch breaks GanttHelperTest. Could you fix the failing tests?

#28 Updated by Yuichi HARADA 4 months ago

Go MAEDA wrote:

The patch breaks GanttHelperTest. Could you fix the failing tests?

Sorry, I fixed the failed tests.
I rebuilt a patch.

#29 Updated by Go MAEDA 4 months ago

  • Status changed from Reopened to Closed
  • Resolution set to Fixed

Committed. Thanks.

#30 Updated by Abc4329803 ZHE 3 months ago

[root@host plugins]# patch /-p0 < 6417-collapse-expand-gantt-v3.patch
can't find file to patch at input line 5
Perhaps you used the wrong /-p or /-/-strip option?
The text leading up to this was:
-------------------------- |diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb |index 90f6a85fa..a51abdcde 100644 |--- a/app/views/gantts/show.html.erb |+++ b/app/views/gantts/show.html.erb
--------------------------

My redmine version is 3.4.

Why I have this problem?

#31 Updated by Matt M 3 months ago

I just applied the patch to a 4.0.2 install, I noticed an issue though collapsing, I have a very complex hierarchy and this patch completely disrupts it. I.E. a sub-project of a sub-project of a primary project gets lumped under the version of the sub-project, and is not collapsible, which causes issues with the rendering of the hierarchy and collapsing further down, I.E. collapsing a sub-project encapsulates the last sub-project within the main project. I would put pics but my layout is complex :) I got a pic to show an example.

In this pic if I collapse Mechanical Design then software will disappear, even though they are inline projects.

Also available in: Atom PDF