diff --git a/Jira/Issue.php b/Jira/Issue.php index b59027c..11bc909 100644 --- a/Jira/Issue.php +++ b/Jira/Issue.php @@ -132,8 +132,8 @@ public function getSummary() */ public function getIssueType() { - if (isset($this->fields['Issuetype'])) { - return $this->fields['Issuetype']; + if (isset($this->fields['Issue Type'])) { + return $this->fields['Issue Type']; } } @@ -172,7 +172,7 @@ public function getAssignee() if (isset($this->fields['Assignee'])) { return $this->fields['Assignee']; } - } + } /** * get issue updated time @@ -271,6 +271,8 @@ public function getResolution() } /** + * Is the field exists? Maybe there should be 'Planned End'? + * * get resolution date * * @return mixed @@ -287,10 +289,10 @@ public function getResolutionDate() * * @return mixed */ - public function getWatches() + public function getWatchers() { - if (isset($this->fields['Watches'])) { - return $this->fields['Watches']; + if (isset($this->fields['Watchers'])) { + return $this->fields['Watchers']; } }