Improve webhook to add a task

This commit is contained in:
Frédéric Guillot
2014-02-16 18:47:11 -05:00
parent e155edd1bd
commit c2f8e1c436
3 changed files with 21 additions and 2 deletions

View File

@@ -88,6 +88,12 @@ class Board extends Base
return $columns;
}
// Get first column id for a given project
public function getFirstColumn($project_id)
{
return $this->db->table(self::TABLE)->eq('project_id', $project_id)->asc('position')->findOneColumn('id');
}
// Get list of columns
public function getColumnsList($project_id)
{