public function findTransitonId($issueIdOrKey, $transitionToName)
{
$this->log->addDebug('findTransitonId=');
$ret = $this->getTransition($issueIdOrKey);
foreach ($ret as $trans) {
$toName = $trans->to->name;
$this->log->addDebug('getTransitions result=' . var_export($ret, true));
if (strcmp($toName, $transitionToName) == 0) {
return $trans->id;
}
}
// transition keyword not found
throw new JiraException('Transition name \'' . $transitionToName . '\' not found on JIRA Server.');
}