| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function addWorkLogEntry( |
||
| 19 | string $issueID, |
||
| 20 | int $seconds, |
||
| 21 | string $userID, |
||
| 22 | string $comment, |
||
| 23 | string $created |
||
| 24 | ) { |
||
| 25 | $params = [ |
||
| 26 | 'author' => [ |
||
| 27 | 'accountId' => $userID, |
||
| 28 | ], |
||
| 29 | 'created' => $created, |
||
| 30 | 'timeSpentSeconds' => $seconds, |
||
| 31 | 'comment' => $comment |
||
| 32 | ]; |
||
| 33 | |||
| 34 | return $this->api(self::REQUEST_POST, "/rest/api/2/issue/{$issueID}/worklog?adjustEstimate=auto", $params); |
||
| 35 | } |
||
| 37 |