[feature] add assignee name in the bar label #62

Open
spaluc opened this Issue Apr 20, 2012 · 1 comment

Projects

None yet

2 participants

@spaluc

since there is no additional collumns in gantt I have added assignee name in the bar label (like in MS Project), below is a diff, maybe it would be good to integrate.

diff -Naur lib/redmine/helpers/better_gantt.rb lib/redmine/helpers/better_gantt.rb
--- lib/redmine/helpers/better_gantt.rb 2012-03-16 11:14:26.000000000 +0100
+++ lib/redmine/helpers/better_gantt.rb 2012-04-20 13:26:55.348926300 +0200
@@ -380,8 +380,12 @@
           label = "#{ issue.status.name } #{ issue.done_ratio }%"
         else
           coords = coordinates(issue.start_date, issue.start_date, 0, options[:zoom])
-          label = "#{ issue.status.name }%"
+          label = "#{ issue.status.name }"
         end
+
+        if issue.assigned_to
+          label += " [#{issue.assigned_to}]"
+        end

         case options[:format]
         when :html
@kulesa
Owner

Thanks for the suggestion. I am trying to make this little more configurable, and let users select what is displayed on the bar label themselves. I'll post an update here once that done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment