Skip to content

Commit 72f9bbb

Browse files
authored
Merge pull request #125 from ganchito55/expandGetAllProjects
Support expand attribute in GetAllProjects
2 parents 105e423 + 7f595c6 commit 72f9bbb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Project/ProjectService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ class ProjectService extends \JiraRestApi\JiraClient
1313
/**
1414
* get all project list.
1515
*
16+
* @param array $paramArray
17+
*
1618
* @throws \JiraRestApi\JiraException
1719
*
1820
* @return Project[] array of Project class
1921
*/
20-
public function getAllProjects()
22+
public function getAllProjects($paramArray = [])
2123
{
22-
$ret = $this->exec($this->uri, null);
24+
$ret = $this->exec($this->uri.$this->toHttpQueryParameter($paramArray), null);
2325

2426
$prjs = $this->json_mapper->mapArray(
2527
json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Project\Project'

0 commit comments

Comments
 (0)