Skip to content

Commit ece9f7a

Browse files
committed
add optional paramArray parameter to IssueService getTransition
1 parent c08bcec commit ece9f7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Issue/IssueService.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,17 @@ public function deleteIssue($issueIdOrKey, $paramArray = [])
422422
* Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types.
423423
*
424424
* @param string|int $issueIdOrKey Issue id or key
425+
* @param array $paramArray Query Parameter key-value Array.
425426
*
426427
* @throws JiraException
427428
*
428429
* @return Transition[] array of Transition class
429430
*/
430-
public function getTransition($issueIdOrKey)
431+
public function getTransition($issueIdOrKey, $paramArray = [])
431432
{
432-
$ret = $this->exec($this->uri."/$issueIdOrKey/transitions");
433+
$queryParam = '?'.http_build_query($paramArray);
434+
435+
$ret = $this->exec($this->uri."/$issueIdOrKey/transitions".$queryParam);
433436

434437
$this->log->debug('getTransitions result='.var_export($ret, true));
435438

0 commit comments

Comments
 (0)