added milestone group_by

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1477 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 14 years ago
parent d3cbbe848c
commit 0b2f427dd2
  1. 1
      app/helpers/reporting_helper.rb
  2. 1
      app/models/cost_query/group_by.rb
  3. 7
      app/models/cost_query/group_by/fixed_version_id.rb

@ -70,6 +70,7 @@ module ReportingHelper
when :tracker_id then Tracker.find(value.to_i)
when :week then "#{l(:label_week)} #%s" % value.to_i.modulo(100)
when :priority_id then IssuePriority.find(value.to_i).name
when :fixed_version_id then Version.find(value.to_i).name
else value.inspect
end
end

@ -6,6 +6,7 @@ module CostQuery::GroupBy
CostQuery::GroupBy::ActivityId,
CostQuery::GroupBy::CostObjectId,
CostQuery::GroupBy::CostTypeId,
CostQuery::GroupBy::FixedVersionId,
CostQuery::GroupBy::IssueId,
CostQuery::GroupBy::PriorityId,
CostQuery::GroupBy::ProjectId,

@ -0,0 +1,7 @@
module CostQuery::GroupBy
class FixedVersionId < Base
join_table Issue
applies_for :label_issue_attributes
label :field_fixed_version
end
end
Loading…
Cancel
Save