Property | Type | Description | |
---|---|---|---|
$author | details about author | ||
$comment | string | ||
$id | id of worklog | ||
$self | api link of worklog | ||
$started | string | ||
$timeSpent | string | ||
$timeSpentSeconds | integer | ||
$updateAuthor | array | ||
$updated | string | ||
$visibility | array |
Method | Description | |
---|---|---|
jsonSerialize ( ) : array | Function to serialize obj vars. | |
setComment ( string $comment ) | Function to set comments. | |
setStarted ( mixed $started ) | Function to set start time of worklog. | |
setStartedDateTime ( DateTime $started ) | Function to set start time of worklog. | |
setTimeSpent ( string $timeSpent ) | Function to set worklog time in string. | |
setTimeSpentSeconds ( integer $timeSpentSeconds ) | Function to set worklog time in seconds. | |
setVisibility ( string $type, string $value ) | Function to set visibility of worklog. |
public jsonSerialize ( ) : array | ||
return | array |
public setComment ( string $comment ) | ||
$comment | string |
public setStarted ( mixed $started ) | ||
$started | mixed | started time value(\DateTime|string) e.g. - new DateTime("2016-03-17 11:15:34") or "2016-03-17 11:15:34" |
public setStartedDateTime ( DateTime $started ) | ||
$started | DateTime | e.g. - new DateTime("2014-04-05 16:00:00") |
public setTimeSpent ( string $timeSpent ) | ||
$timeSpent | string |
public setTimeSpentSeconds ( integer $timeSpentSeconds ) | ||
$timeSpentSeconds | integer |
public setVisibility ( string $type, string $value ) | ||
$type | string | value can be group or role |
$value | string |