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 corresponding methods for activity dynamic models * `Activity` -> attachments_by_activity * `Activity::Comment` -> attachments_by_activity_comment * `Activity::BcfComment` -> attachments_by_activity_bcf_comment
Kabiru Mwenja2c6091db5514
diff --git a/lib/api/v3/utilities/path_helper.rb b/lib/api/v3/utilities/path_helper.rbindex afecdcee01b..9c2b6ada5ea 100644--- a/lib/api/v3/utilities/path_helper.rb+++ b/lib/api/v3/utilities/path_helper.rb@@ -123,7 +123,15 @@ module API"#{root}/attachments/#{id}/content"end+ def self.attachments_by_activity_bcf_comment(id)+ attachments_by_activity(id)+ end+def self.attachments_by_activity_comment(id)+ attachments_by_activity(id)+ end++ def self.attachments_by_activity(id)"#{root}/activities/#{id}/attachments"end