Improve webhook to add a task
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,11 @@ class Project extends Base
|
||||
return $this->db->table(self::TABLE)->eq('id', $project_id)->findOne();
|
||||
}
|
||||
|
||||
public function getFirst()
|
||||
{
|
||||
return $this->db->table(self::TABLE)->findOne();
|
||||
}
|
||||
|
||||
public function getAll($fetch_stats = false)
|
||||
{
|
||||
if (! $fetch_stats) {
|
||||
|
||||
Reference in New Issue
Block a user