diff --git a/README.md b/README.md index 18c86e3..88eebb7 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,12 @@ Get time totals for a tasklist $teamwork->tasklist($id)->timeTotal(); ``` +Get tasklists associated with a project + +```php +$teamwork->project($id)->tasklists(); +``` + #### Milestone Get all milestones in Teamwork. diff --git a/src/Rossedman/Teamwork/Project.php b/src/Rossedman/Teamwork/Project.php index 80dd278..43760e8 100644 --- a/src/Rossedman/Teamwork/Project.php +++ b/src/Rossedman/Teamwork/Project.php @@ -144,7 +144,7 @@ public function milestones($args = null) * * @return [type] [description] */ - public function tasklist($args = null) + public function tasklists($args = null) { return $this->client->get("$this->endpoint/$this->id/tasklists", $args)->response(); }