public function getByProject($project_id, $archive = false)
    {
        $project_id = (int) $project_id;
        if ($project_id <= 0) {
            throw new Exception('Invalid param project_id');
        }
        $action = "projects/$project_id/$this->action";
        if ($archive) {
            $action .= '/archive';
        }
        return $this->rest->get($action);
    }