Project

General

Profile

Actions

Feature #10485

closed

Add new context menu in Gantt view for each issue

Added by Dieter Egert over 12 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gantt
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

In gantt view there is no way to manage any issue.
But just here you can see and evaluate many things of the project.
So it would be a great help if here is used the same context menu as already used in the issue list.


Files

gantt_context_menu.diff (2.58 KB) gantt_context_menu.diff Christian Dähn, 2014-04-04 16:43
0002-Add-context-menu-to-the-task-bar.patch (2.68 KB) 0002-Add-context-menu-to-the-task-bar.patch Mizuki ISHIKAWA, 2017-07-13 07:59
0001-Add-context-menu-to-the-issue-subjects.patch (2.71 KB) 0001-Add-context-menu-to-the-issue-subjects.patch Mizuki ISHIKAWA, 2017-07-13 07:59
task_bar.png (225 KB) task_bar.png Mizuki ISHIKAWA, 2017-07-13 07:59
issue_subject.png (236 KB) issue_subject.png Mizuki ISHIKAWA, 2017-07-13 07:59
tests_for_context_menu_in_gantts.patch (663 Bytes) tests_for_context_menu_in_gantts.patch Marius BĂLTEANU, 2017-11-27 01:15
Actions #1

Updated by Terence Mill over 12 years ago

+1
Additionally modifying start date, due date, progress and issue relations is useful in context of gant.
THis is not directly part of nowadays context menu

Actions #2

Updated by morlockmaria John over 12 years ago

  • Assignee set to Jim Mulholland
Actions #3

Updated by Etienne Massip over 12 years ago

  • Assignee deleted (Jim Mulholland)
Actions #4

Updated by Michael Heinze over 11 years ago

+1
We also hope for this feature to be implemented.

Actions #5

Updated by Christian Dähn over 10 years ago

+1
I'm currently experimenting how to solve that - sadly I'm currently very unexperienced in Ruby/Rails programming...

Actions #6

Updated by Christian Dähn over 10 years ago

As Ruby noob I tried to understand how to implement context menus in Redmine, but currently I'm stucked with some (derivation?) problems with the view hooks and the Gantt class.

Currently I implemented inside Gantt:
  • the context menu attributes for CSS
  • the context menu hooks / placeholders in show.erb
  • added the context_menu_link() for each issue, which causes the following error:
Started GET "/redmine/projects/huk_handerfassung/issues/gantt" for 192.168.10.30 at Tue Apr 01 15:34:34 +0200 2014
Processing by GanttsController#show as HTML
  Parameters: {"project_id"=>"huk_handerfassung"}
  Current user: chris (id=2)
  Rendered queries/_filters.html.erb (45.0ms)
  Rendered gantts/show.html.erb within layouts/base (444.3ms)
Completed 500 Internal Server Error in 1061.5ms

ActionView::Template::Error (undefined method `link_to' for #<Redmine::Helpers::Gantt:0xb463e6d8>):
    102: 
    103:   # Width of the entire chart
    104:   g_width = ((@gantt.date_to - @gantt.date_from + 1) * zoom).to_i
    105:   @gantt.render(:top => headers_height + 8,
    106:                 :zoom => zoom,
    107:                 :g_width => g_width,
    108:                 :subject_width => subject_width)
  app/helpers/context_menus_helper.rb:34:in `context_menu_link'
  lib/redmine/helpers/gantt.rb:387:in `subject_for_issue'
  lib/redmine/helpers/gantt.rb:239:in `render_issues'
  lib/redmine/helpers/gantt.rb:238:in `each'
  lib/redmine/helpers/gantt.rb:238:in `render_issues'
  lib/redmine/helpers/gantt.rb:224:in `render_project'
  lib/redmine/helpers/gantt.rb:206:in `render'
  app/models/project.rb:748:in `project_tree'
  app/models/project.rb:744:in `each'
  app/models/project.rb:744:in `project_tree'
  lib/redmine/helpers/gantt.rb:204:in `render'
  app/views/gantts/show.html.erb:105:in `_app_views_gantts_show_html_erb___32399475__631731208'
  app/controllers/gantts_controller.rb:44:in `show'
  app/controllers/gantts_controller.rb:43:in `show'

Attached my diff (created by svn diff command) for the following SVN version of Redmine:

RL: http://svn.redmine.org/redmine/branches/2.4-stable
Basis des Projektarchivs: http://svn.redmine.org/redmine
UUID des Projektarchivs: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 13036
Knotentyp: Verzeichnis
Plan: normal
Letzter Autor: jplang
Letzte geänderte Rev: 13031
Letztes Änderungsdatum: 2014-03-29 17:06:51 +0100 (Sa, 29. Mär 2014)

Environment:

> Debian Wheezy + Apache2 + mod_passenger + Redmine 2.4
> bundle show
Gems included by the bundle:
  * actionmailer (3.2.17)
  * actionpack (3.2.17)
  * activemodel (3.2.17)
  * activerecord (3.2.17)
  * activeresource (3.2.17)
  * activesupport (3.2.17)
  * arel (3.0.3)
  * builder (3.0.0)
  * bundler (1.3.5)
  * coderay (1.1.0)
  * erubis (2.7.0)
  * fastercsv (1.5.5)
  * hike (1.2.3)
  * i18n (0.6.9)
  * journey (1.0.4)
  * jquery-rails (2.0.3)
  * json (1.8.1)
  * mail (2.5.4)
  * mime-types (1.25.1)
  * multi_json (1.9.2)
  * mysql2 (0.3.15)
  * net-ldap (0.3.1)
  * polyglot (0.3.4)
  * rack (1.4.5)
  * rack-cache (1.2)
  * rack-openid (1.4.2)
  * rack-ssl (1.3.4)
  * rack-test (0.6.2)
  * rails (3.2.17)
  * railties (3.2.17)
  * rake (10.1.1)
  * rdoc (3.12.2)
  * rmagick (2.13.2)
  * ruby-openid (2.3.0)
  * sprockets (2.2.2)
  * thor (0.19.1)
  * tilt (1.4.1)
  * treetop (1.4.15)
  * tzinfo (0.3.39)

Has anybody a hint how to solve this undefined method error? I already tried to let the class Gantt inherit the view listener hook class, but this lead to much more errors :(

Actions #7

Updated by Toshi MARUYAMA over 10 years ago

  • Category set to Gantt
Actions #8

Updated by mark burdett over 9 years ago

Here's a sample UI for editing issue timelines directly from a gantt chart: http://teamgantt.com/img/test3.gif

Actions #9

Updated by Christian Dähn over 9 years ago

That looks great - would really love to see it in Redmine - because even with plugins like "redmine_planning" working with industry leading methods like Gantt is a (sorry) pain in the ass with (community) Redmine.

Currently only commercial Redmine forks have a really neat usability, while the community version lacks even very basic features like a simple context menu.

I'm hardly trying to dive into plugin programming which is really hard thanks to the lack of docu and help of the devs.

Sadly nobody cares about new contributors.

Actions #10

Updated by Mizuki ISHIKAWA over 7 years ago

Please try out the attached patch series.
By applying the patches, a context menu is added on each issues and gantt bars. You will be able to manipulate the issue through the context menu. I think the gantt chart will be easier to use.

Actions #11

Updated by Akipii Oga over 7 years ago

+100 !!
I also want to operate the Gantt Chart on the context menu like a Roadmap or Issue list.

Actions #12

Updated by Go MAEDA over 7 years ago

  • Target version set to 4.1.0

This simple patch greatly improves UI/UX of gantt.
Let's deliver this feature in the next major release.

Actions #13

Updated by Go MAEDA almost 7 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version changed from 4.1.0 to 4.0.0
  • Resolution set to Fixed

Committed in the trunk.
Mizuki ISHIKAWA, thank you for improving Redmine.

Actions #14

Updated by Marius BĂLTEANU almost 7 years ago

I've added some basic assertions for this feature.

Actions #15

Updated by Go MAEDA almost 7 years ago

  • Status changed from Reopened to Closed

Marius BALTEANU wrote:

I've added some basic assertions for this feature.

Committed. Thank you.

Actions

Also available in: Atom PDF