Project

General

Profile

Actions

Feature #6417

closed

Allow collapse/expand in gantt chart

Feature #6417: Allow collapse/expand in gantt chart

Added by N G about 16 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gantt
Target version:
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!


Files

expand_gantt.png (346 KB) expand_gantt.png Yuichi HARADA, 2019-01-31 03:27
collapse_gantt.png (293 KB) collapse_gantt.png Yuichi HARADA, 2019-01-31 03:28
6417-collapse-expand-gantt.patch (11.1 KB) 6417-collapse-expand-gantt.patch Yuichi HARADA, 2019-01-31 03:38
virtical-alignment@2x.png (23.8 KB) virtical-alignment@2x.png Go MAEDA, 2019-02-25 14:02
6417-collapse-expand-gantt-v2.patch (11.3 KB) 6417-collapse-expand-gantt-v2.patch Yuichi HARADA, 2019-03-04 05:39
6417-collapse-expand-gantt-v3.patch (12.5 KB) 6417-collapse-expand-gantt-v3.patch Yuichi HARADA, 2019-03-05 03:42

Related issues 5 (1 open — 4 closed)

Related to Redmine - Feature #8897: Be able to reorder tasks/issues in the Gantt chartNewActions
Related to Redmine - Defect #32812: Clicking on a parent object in gantt wrongly collapses objects at the same levelClosedGo MAEDAActions
Has duplicate Redmine - Feature #13063: Make Gantt chart issues collapsible ClosedActions
Has duplicate Redmine - Feature #11636: tree structure of GanttClosedActions
Has duplicate Redmine - Feature #26467: expand & collapse gantt chart listClosedActions

Updated by Eric Davis about 16 years ago Actions #1

  • 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.

Updated by Hans Bangkok over 15 years ago Actions #2

+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?

Updated by Pierluigi Soana about 15 years ago Actions #3

+1

Updated by Artem Tykhonov over 14 years ago Actions #4

+1

Updated by Cassiano Monteiro over 14 years ago Actions #5

+1!

Updated by Terence Mill over 14 years ago Actions #6

+1

Updated by Robert Johnson over 14 years ago Actions #7

+1

Updated by Luis Serrano Aranda about 14 years ago Actions #8

+1

Updated by Dipan Mehta over 13 years ago Actions #9

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

Updated by Toshi MARUYAMA over 13 years ago Actions #10

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.

Updated by Toshi MARUYAMA over 12 years ago Actions #11

Updated by Toshi MARUYAMA over 12 years ago Actions #12

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

Updated by James H about 12 years ago Actions #13

+1

Updated by Alexander Mikheyev over 10 years ago Actions #14

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

Updated by Florian Riedel almost 10 years ago Actions #15

+1

Updated by Mischa The Evil over 9 years ago Actions #16

  • Has duplicate Feature #26467: expand & collapse gantt chart list added

Updated by Randa Bustami over 9 years ago Actions #17

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

Updated by Mizuki ISHIKAWA about 9 years ago Actions #18

+1

Updated by Yuichi HARADA almost 8 years ago Actions #19

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

[Expand]

[Collapse]

Updated by Go MAEDA almost 8 years ago Actions #20

  • Target version set to Candidate for next major release

Updated by Go MAEDA over 7 years ago Actions #21

  • 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.

Updated by Go MAEDA over 7 years ago Actions #22

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

Updated by Yuichi HARADA over 7 years ago Actions #23

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.

Updated by Go MAEDA over 7 years ago Actions #24

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.

Updated by Go MAEDA over 7 years ago Actions #25

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

Committed the patch. Thank you for your contribution.

Updated by Go MAEDA over 7 years ago Actions #26

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

Updated by Go MAEDA over 7 years ago Actions #27

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

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

Updated by Yuichi HARADA over 7 years ago Actions #28

Go MAEDA wrote:

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

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

Updated by Go MAEDA over 7 years ago Actions #29

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

Committed. Thanks.

Updated by Abc4329803 ZHE over 7 years ago Actions #30

[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?

Updated by Matt M over 7 years ago Actions #31

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.

Updated by Go MAEDA almost 7 years ago Actions #32

  • Related to Defect #32812: Clicking on a parent object in gantt wrongly collapses objects at the same level added
Actions

Also available in: PDF Atom