OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add `derived_done_ratio` to the work package representer
Aaron Contreras8db098258e13
diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rbindex ee80601bd82..d4e23d11d87 100644--- a/lib/api/v3/work_packages/work_package_representer.rb+++ b/lib/api/v3/work_packages/work_package_representer.rb@@ -445,6 +445,11 @@ module APIrender_nil: true,if: ->(*) { Setting.work_package_done_ratio != 'disabled' }+ property :derived_done_ratio,+ as: :derivedPercentageDone,+ render_nil: true,+ if: ->(*) { Setting.work_package_done_ratio != 'disabled' }+date_time_property :created_atdate_time_property :updated_at