When converting a subtask to a new task, I think it would be useful to copy the tags of the initial task in the new task, as is already the case with category and color.
We use tags to group tasks in projects and when converting subtasks to tasks this connection is getting lost.
You could just adjust the following lines and send a Pull Request
I imagine one has to add
'tag_id' => $parent_task['tag_id'],
but i have to admit that i am not fluent with the etiquette of github…
Could i ask you to do this ?