Skip to content

Commit

Permalink
Fix several get methods (issue fields were not accessible)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvdmt committed Jul 15, 2014
1 parent cfe101f commit 3055d56
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Jira/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}

Expand Down Expand Up @@ -172,7 +172,7 @@ public function getAssignee()
if (isset($this->fields['Assignee'])) {
return $this->fields['Assignee'];
}
}
}

/**
* get issue updated time
Expand Down Expand Up @@ -271,6 +271,8 @@ public function getResolution()
}

/**
* Is the field exists? Maybe there should be 'Planned End'?
*
* get resolution date
*
* @return mixed
Expand All @@ -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'];
}
}

Expand Down

0 comments on commit 3055d56

Please sign in to comment.