From efb5004cd3f46122254b7a727dcf306547d9236c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Thu, 19 Jul 2018 16:26:50 +0200 Subject: [PATCH] * story also got epic name --- src/App/Service/JiraCollectorService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App/Service/JiraCollectorService.php b/src/App/Service/JiraCollectorService.php index 4fb31e1..ed36cb5 100644 --- a/src/App/Service/JiraCollectorService.php +++ b/src/App/Service/JiraCollectorService.php @@ -230,7 +230,10 @@ class JiraCollectorService } // epicName: has parent, and parent has customfield_10001 - if (isset($jsonIssue['fields']['parent'])) { + if (isset($jsonIssue['fields']['customfield_10001'])) { + $epicName = $this->getEpicNameFromParent($jsonIssue['key']); + $kanbanEntry->setEpicName($epicName); + } elseif (isset($jsonIssue['fields']['parent'])) { $epicName = $this->getEpicNameFromParent($jsonIssue['fields']['parent']['key']); $kanbanEntry->setEpicName($epicName); }