From 6240a95b6a74113f76b510b4f1f4c74fd3a1cff7 Mon Sep 17 00:00:00 2001 From: Chris Birk Date: Mon, 15 Jun 2015 23:28:20 -0400 Subject: [PATCH] add Project::createTasklist() --- src/Rossedman/Teamwork/Project.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Rossedman/Teamwork/Project.php b/src/Rossedman/Teamwork/Project.php index 11b9bb1..ef822f1 100644 --- a/src/Rossedman/Teamwork/Project.php +++ b/src/Rossedman/Teamwork/Project.php @@ -150,6 +150,18 @@ public function createMilestone($args) { return $this->client->post("$this->endpoint/$this->id/milestones", ['milestone' => $args])->response(); } + /** + * Create tasklist associated with this project + * POST /projects/{project_id}/tasklists.json + * + * @param $args + * + * @return mixed + */ + public function createTasklist($args) { + return $this->client->post("$this->endpoint/$this->id/tasklists", ['todo-list' => $args])->response(); + } + /** * Tasklists * GET /projects/{project_id}/tasklists.json