public getWorklogById ( mixed $issueIdOrKey, integer $workLogId ) : |
||
$issueIdOrKey | mixed | |
$workLogId | integer | |
return | object |
public function getWorklogById($issueIdOrKey, $workLogId)
{
$ret = $this->exec($this->uri . "/{$issueIdOrKey}/worklog/{$workLogId}");
$this->log->addDebug("getWorklogById res={$ret}\n");
$worklog = $this->json_mapper->map(json_decode($ret), new Worklog());
return $worklog;
}
/** * @depends testUpdateWorkLogInIssue */ public function testGetWorkLogById($workLogid) { try { $issueService = new IssueService(); $worklog = $issueService->getWorklogById($this->issueKey, $workLogid); Dumper::dump($worklog); } catch (JiraException $e) { $this->assertTrue(false, 'testGetWorkLogById Failed : ' . $e->getMessage()); } }