diff --git a/src/Project/ProjectService.php b/src/Project/ProjectService.php index 70875e23..a00e1d4a 100644 --- a/src/Project/ProjectService.php +++ b/src/Project/ProjectService.php @@ -13,13 +13,15 @@ class ProjectService extends \JiraRestApi\JiraClient /** * get all project list. * + * @param array $paramArray + * * @throws \JiraRestApi\JiraException * * @return Project[] array of Project class */ - public function getAllProjects() + public function getAllProjects($paramArray = []) { - $ret = $this->exec($this->uri, null); + $ret = $this->exec($this->uri.$this->toHttpQueryParameter($paramArray), null); $prjs = $this->json_mapper->mapArray( json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Project\Project'