Change the owner of a task. The new owner must have at least CHANGE permissions on scope where the task is created and access rights may not exceed the access rights of the user who is calling this method.
Changing the owner is useful if you plan to remove an existing user (removing a user will also delete the tasks of the user).
This function generates a change.
task.set_owner(name)
Argument | Type | Description |
---|---|---|
name | str (required) | Name of the new owner. |
Returns nil
when successful.