Feature #26409

Show assignee on gantt

Added by Go MAEDA 3 months ago. Updated about 1 month ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Gantt
Target version:4.1.0
Resolution:

Description

Needless to say, assignee is important information to manage projects. It would be great if assignee is displayed on gantt.

I have found some similar requests on the forum:

show_assignee_on_gantt.patch Magnifier (14 KB) Mizuki ISHIKAWA, 2017-07-28 03:12

assignee_on_gantt.png (248 KB) Mizuki ISHIKAWA, 2017-07-28 03:12

show_assignee_on_gantt.patch_v2.patch Magnifier (14.2 KB) Mizuki ISHIKAWA, 2017-08-17 10:27


Related issues

Blocked by Redmine - Feature #20481: Gantt: right and left resizable panel New

History

#1 Updated by Yuuki NARA 3 months ago

+1
I think so, too

#2 Updated by Mizuki ISHIKAWA 3 months ago

I wrote a patch to implement this feature.
You can switch the display like Progress line.

This patch is made on the premise that a patch of Feature #20481 (Gantt: left and right resizable panels) is applied.
Before applying this patch, apply the patch of Feature #20481 .

#3 Updated by Go MAEDA 3 months ago

  • Blocked by Feature #20481: Gantt: right and left resizable panel added

#4 Updated by Go MAEDA 3 months ago

  • Target version set to 4.1.0

I think this is a must-have feature for most gantt users. Setting target version to 4.1.0.

#5 Updated by Marius BALTEANU 2 months ago

I've tested the patch and I've two observations:
1. the patch doesn't apply cleanly on the current trunk (r16948).
2. it'll be nice to have also gravatar shown for the assignee.

#6 Updated by Go MAEDA 2 months ago

Marius BALTEANU wrote:

1. the patch doesn't apply cleanly on the current trunk (r16948).

The patch depends on another patch #20481. Could you try again after applying it?

2. it'll be nice to have also gravatar shown for the assignee.

I agree with you. Gravatar icon should be shown for consistency.

#7 Updated by Marius BALTEANU 2 months ago

Go MAEDA wrote:

Marius BALTEANU wrote:

1. the patch doesn't apply cleanly on the current trunk (r16948).

The patch depends on another patch #20481. Could you try again after applying it?

Sorry for the mistake, it seems that my local repository didn't have the latest changes from the trunk. Now the second patch applies cleanly.

#8 Updated by Mizuki ISHIKAWA 2 months ago

Marius BALTEANU wrote:


2. it'll be nice to have also gravatar shown for the assignee.

Thank you for your advice.

I changed patch as follows:

--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -336,7 +336,10 @@ module Redmine
       def assigned_to_name(issue, options)
         if issue.is_a?(Issue) && options[:format] == :html && issue.assigned_to.present?
           style = "position: absolute;top: #{options[:top]}px;" 
-          assigned_to_name = view.content_tag(:div, view.content_tag(:span, issue.try(:assigned_to).try(:name)), :style => style, :class => 'issue-assigned-name')
+          content = view.avatar(issue.assigned_to,
+                                 :class => 'gravatar icon-gravatar',
+                                 :size => 10) + view.link_to_user(issue.assigned_to)
+          assigned_to_name = view.content_tag(:div, content.html_safe, :style => style, :class => 'issue-assigned-name')
           @assigned_to_names << assigned_to_name
           assigned_to_name
         end

Also available in: Atom PDF