Project

General

Profile

Show assignee on chart in better gantt plugin

Added by Pierre Doleans over 12 years ago

Hi there,
will it possible to show assignee on chart in better gantt plugin?
Like close/after status and progress or above.


Replies (1)

RE: Show assignee on chart in better gantt plugin - Added by Kent Ou over 10 years ago

pls check [home]/lib/redmine/helpers/gantt.rb. Something like below.
  1. label = "#{ issue.status.name }"
    label = issue.assigned_to.present? ? "#{ issue.assigned_to.name }" : ""
    label += " #{ issue.done_ratio }%" if issue.done_ratio > 0 && issue.done_ratio < 100
    else
    coords = coordinates(issue.start_date, issue.start_date, 0, options[:zoom])
  2. label = "#{ issue.status.name }"
    label = issue.assigned_to.present? ? "#{ issue.assigned_to.name }" : ""
    end
if issue.due_before
coords = coordinates(issue.start_date, issue.due_before, issue.done_ratio, options[:zoom])
    (1-1/1)