Filters work packages by change time

pull/852/head
Hagen Schink 11 years ago
parent 535e7a42e5
commit cbf1c205b0
  1. 5
      app/controllers/api/v2/planning_elements_controller.rb

@ -209,6 +209,11 @@ module Api
work_packages = WorkPackage.for_projects(projects)
.includes(:status, :project, :type)
if params[:changed_since]
since = Time.at(Float(params[:changed_since]).to_i) rescue render_400
work_packages = work_packages.where(["updated_at >= ?", since])
end
if params[:f]
query = Query.new
query.add_filters(params[:f], params[:op], params[:v])

Loading…
Cancel
Save