Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 0df2116

Browse files
committed
Merge pull request #5 from cmbirk/master
Add CreateTasklist method to Project
2 parents 64aa9c9 + 6240a95 commit 0df2116

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Rossedman/Teamwork/Project.php

+12
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@ public function createMilestone($args) {
150150
return $this->client->post("$this->endpoint/$this->id/milestones", ['milestone' => $args])->response();
151151
}
152152

153+
/**
154+
* Create tasklist associated with this project
155+
* POST /projects/{project_id}/tasklists.json
156+
*
157+
* @param $args
158+
*
159+
* @return mixed
160+
*/
161+
public function createTasklist($args) {
162+
return $this->client->post("$this->endpoint/$this->id/tasklists", ['todo-list' => $args])->response();
163+
}
164+
153165
/**
154166
* Tasklists
155167
* GET /projects/{project_id}/tasklists.json

0 commit comments

Comments
 (0)