* worklog time spent added
This commit is contained in:
@@ -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']));
|
||||
|
||||
Reference in New Issue
Block a user