pyopenproject icon indicating copy to clipboard operation
pyopenproject copied to clipboard

Work package update_form is unfinished

Open druggedhippo opened this issue 1 year ago • 0 comments

Work package update_form is not implemented properly.

https://www.openproject.org/docs/api/endpoints/work-packages/#work-package-edit-form

L#62 in pyopenproject/business/services/work_package_service_impl.py

return UpdateForm(self.connection)

Should be

return UpdateForm(self.connection, work_package).execute()

And pyopenproject/business/services/command/work_package/update_form.py needs the post request modified

json_obj = PostRequest(connection=self.connection, headers={"Content-Type": "application/json"}, context=f"{self.CONTEXT}/{self.package.id}/form", json=self.package.__dict__).execute()

along with the changes to the __init__ to store the package

druggedhippo avatar Jul 11 '23 05:07 druggedhippo