OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/services/reports/version_report.rb

23 lines
352 B

class Reports::VersionReport < Reports::Report
def self.report_type
"version"
end
def field
@field ||= "fixed_version_id"
end
def rows
@rows ||= @project.shared_versions.sort
end
def data
@data ||= WorkPackage.by_version(@project)
end
def title
@title ||= WorkPackage.human_attribute_name(:version)
end
end