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

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

get getWorklog.
public getWorklog ( mixed $issueIdOrKey ) : PaginatedWorklog
$issueIdOrKey mixed
Результат PaginatedWorklog object
    public function getWorklog($issueIdOrKey)
    {
        $ret = $this->exec($this->uri . "/{$issueIdOrKey}/worklog");
        $this->log->addDebug("getWorklog res={$ret}\n");
        $worklog = $this->json_mapper->map(json_decode($ret), new PaginatedWorklog());
        return $worklog;
    }

Usage Example

 public function testGetTimeTracking()
 {
     try {
         $issueService = new IssueService();
         $ret = $issueService->getWorklog($this->issueKey);
         var_dump($ret);
     } catch (JIRAException $e) {
         $this->assertTrue(false, 'testGetTimeTracking Failed : ' . $e->getMessage());
     }
 }
All Usage Examples Of JiraRestApi\Issue\IssueService::getWorklog