* worklog time spent added

This commit is contained in:
Dávid Danyi
2017-08-24 17:14:05 +02:00
parent 1ab6691827
commit 09b2fd2c5f
3 changed files with 31 additions and 0 deletions

View File

@@ -92,6 +92,12 @@ class JiraCollectorService
->setLabels($jsonIssue['fields']['labels'])
;
$timeSpent = 0;
array_map(function($worklog) use (&$timeSpent){
$timeSpent += $worklog['timeSpentSeconds'];
}, $jsonIssue['fields']['worklog']['worklogs']);
$kanbanEntry->setWorklog(ceil($timeSpent/3600));
// externalId : customfield_10010
if(isset($jsonIssue['fields']['customfield_10010'])) {
$kanbanEntry->setPrio(intval($jsonIssue['fields']['customfield_10010']));