From 2e0f4936af9cef0664c2e4cdf7881c6d9f42c596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Tue, 15 Aug 2017 14:48:59 +0200 Subject: [PATCH] * jira priority field added to api --- src/App/Entity/KanbanEntry.php | 24 ++++++++++++++++++++++++ src/App/Service/DataCollectorService.php | 1 + 2 files changed, 25 insertions(+) diff --git a/src/App/Entity/KanbanEntry.php b/src/App/Entity/KanbanEntry.php index 610d559..a5257eb 100644 --- a/src/App/Entity/KanbanEntry.php +++ b/src/App/Entity/KanbanEntry.php @@ -37,6 +37,11 @@ class KanbanEntry implements \JsonSerializable */ private $assignee; + /** + * @var string + */ + private $issuePriority; + /** * JIRA: customfield_11226 * @var int @@ -213,6 +218,24 @@ class KanbanEntry implements \JsonSerializable return $this; } + /** + * @return string + */ + public function getIssuePriority(): string + { + return $this->issuePriority; + } + + /** + * @param string $issuePriority + * @return KanbanEntry + */ + public function setIssuePriority(string $issuePriority): KanbanEntry + { + $this->issuePriority = $issuePriority; + return $this; + } + /** * @return int */ @@ -429,6 +452,7 @@ class KanbanEntry implements \JsonSerializable 'issueType' => $this->getIssueType(), 'status' => $this->getStatus(), 'assignee' => $this->getAssignee(), + 'issuePriority' => $this->getIssuePriority(), 'prio' => $this->getPrio(), 'functionalArea' => $this->getFunctionalAreas()->getValues(), 'externalId' => $this->getExternalId(), diff --git a/src/App/Service/DataCollectorService.php b/src/App/Service/DataCollectorService.php index c20b962..67b8099 100644 --- a/src/App/Service/DataCollectorService.php +++ b/src/App/Service/DataCollectorService.php @@ -87,6 +87,7 @@ class DataCollectorService ->setExternalLink($jsonIssue['fields']['customfield_10850']) ->setMhwebStatus($jsonIssue['fields']['customfield_10844']) ->setAnswerCode($jsonIssue['fields']['customfield_11692']) + ->setIssuePriority($jsonIssue['fields']['priority']['name']) ; // externalId : customfield_10010