public function getByProject($id, $params = null)
    {
        $project_id = (int) $id;
        if ($project_id <= 0) {
            throw new Exception('Invalid param project_id');
        }
        if ($params && is_string($params)) {
            $status = ['active','completed'];
            $filter = ['upcoming','late','today','tomorrow'];
            if (in_array($params, $status)) {
                $params = ['status'=> $params];
            } elseif (in_array($params, $filter)) {
                $params = ['filter'=> $params];
            } else {
                $params = null;
            }
        }
        return $this->rest->get("projects/$project_id/$this->action", $params);
    }