JiraRestApi\Issue\IssueService::getTransition PHP Метод

getTransition() публичный Метод

Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types.
public getTransition ( $issueIdOrKey ) : array
Результат array of Transition class
    public function getTransition($issueIdOrKey)
    {
        $ret = $this->exec($this->uri . "/{$issueIdOrKey}/transitions");
        $this->log->addDebug('getTransitions result=' . var_export($ret, true));
        $data = json_encode(json_decode($ret)->transitions);
        $transitions = $this->json_mapper->mapArray(json_decode($data), new \ArrayObject(), '\\JiraRestApi\\Issue\\Transition');
        return $transitions;
    }