Merge pull request #144 from H4dr1en/patch-2

Add set_parent method to Tasks
This commit is contained in:
Allegro AI 2020-06-09 23:16:49 +03:00 committed by GitHub
commit 0743fa47f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -974,6 +974,16 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
self._set_task_property("name", str(name))
self._edit(name=self.data.name)
def set_parent(self, parent):
# type: (str) -> ()
"""
Set the parent task for the Task.
:param comment: The parent task id for the Task.
:type comment: str
"""
self._set_task_property("parent", str(parent))
self._edit(parent=parent)
def set_comment(self, comment):
# type: (str) -> ()
"""