Skip to content

Work package update_form is unfinished #39

@druggedhippo

Description

@druggedhippo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions