public function editWorklog($issueIdOrKey, $worklog, $worklogId)
{
$this->log->addInfo("editWorklog=\n");
$data = json_encode($worklog);
$url = $this->uri . "/{$issueIdOrKey}/worklog/{$worklogId}";
$type = 'PUT';
$ret = $this->exec($url, $data, $type);
$ret_worklog = $this->json_mapper->map(json_decode($ret), new Worklog());
return $ret_worklog;
}