Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 34 additions & 20 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 All @@ -144,8 +144,8 @@ public function getIssueType()
*/
public function getReporter()
{
if (isset($this->fields['reporter'])) {
return $this->fields['reporter'];
if (isset($this->fields['Reporter'])) {
return $this->fields['Reporter'];
}
}

Expand All @@ -156,8 +156,8 @@ public function getReporter()
*/
public function getCreated()
{
if (isset($this->fields['created'])) {
return $this->fields['created'];
if (isset($this->fields['Created'])) {
return $this->fields['Created'];
}
}

Expand All @@ -169,10 +169,10 @@ public function getCreated()

public function getAssignee()
{
if (isset($this->fields['assignee'])) {
return $this->fields['assignee'];
if (isset($this->fields['Assignee'])) {
return $this->fields['Assignee'];
}
}
}

/**
* get issue updated time
Expand All @@ -181,8 +181,8 @@ public function getAssignee()
*/
public function getUpdated()
{
if (isset($this->fields['updated'])) {
return $this->fields['updated'];
if (isset($this->fields['Updated'])) {
return $this->fields['Updated'];
}
}

Expand All @@ -193,8 +193,8 @@ public function getUpdated()
*/
public function getPriority()
{
if (isset($this->fields['priority'])) {
return $this->fields['priority'];
if (isset($this->fields['Priority'])) {
return $this->fields['Priority'];
}
}

Expand Down Expand Up @@ -265,20 +265,22 @@ public function getFixVersions()
*/
public function getResolution()
{
if (isset($this->fields['resolution'])) {
return $this->fields['resolution'];
if (isset($this->fields['Resolution'])) {
return $this->fields['Resolution'];
}
}

/**
* Is the field exists? Maybe there should be 'Planned End'?
*
* get resolution date
*
* @return mixed
*/
public function getResolutionDate()
{
if (isset($this->fields['resolutiondate'])) {
return $this->fields['resolutiondate'];
if (isset($this->fields['Resolutiondate'])) {
return $this->fields['Resolutiondate'];
}
}

Expand All @@ -287,10 +289,22 @@ public function getResolutionDate()
*
* @return mixed
*/
public function getWatches()
public function getWatchers()
{
if (isset($this->fields['Watchers'])) {
return $this->fields['Watchers'];
}
}

/**
* get due date
*
* @return mixed
*/
public function getDueDate()
{
if (isset($this->fields['watches'])) {
return $this->fields['watches'];
if (isset($this->fields['Due Date'])) {
return $this->fields['Due Date'];
}
}

Expand Down