pyopenproject
pyopenproject copied to clipboard
Work package update_form is unfinished
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