ianme
October 28, 2020, 10:14am
1
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
* @access public
* @param integer $project_id
* @param integer $subtask_id
* @return integer
*/
public function convertToTask($project_id, $subtask_id)
{
$subtask = $this->subtaskModel->getById($subtask_id);
$parent_task = $this->taskFinderModel->getById($subtask['task_id']);
$task_id = $this->taskCreationModel->create(array(
'project_id' => $project_id,
'title' => $subtask['title'],
'time_estimated' => $subtask['time_estimated'],
'time_spent' => $subtask['time_spent'],
'owner_id' => $subtask['user_id'],
'swimlane_id' => $parent_task['swimlane_id'],
'priority' => $parent_task['priority'],
'column_id' => $parent_task['column_id'],
'category_id' => $parent_task['category_id'],
'color_id' => $parent_task['color_id']
2 Likes
ianme
October 30, 2020, 3:42pm
3
Thank you!
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 ?