Skip to content

Commit

Permalink
remove deadly code(fixed #33)
Browse files Browse the repository at this point in the history
update apidoc,
  • Loading branch information
lesstif committed May 20, 2016
1 parent b1418c8 commit 0b1defa
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,5 +524,5 @@ try {
Apache V2 License

# JIRA Rest API Documents
* 6.2 - https://docs.atlassian.com/jira/REST/6.2/
* 6.4 - https://docs.atlassian.com/jira/REST/6.4/
* latest - https://docs.atlassian.com/jira/REST/latest/
52 changes: 41 additions & 11 deletions src/Issue/IssueField.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public function setSummary($summary)
return $this;
}

/**
* set issue reporter name
*
* @param $name name string
* @return $this
*/
public function setReporterName($name)
{
if (is_null($this->reporter)) {
Expand All @@ -65,6 +71,13 @@ public function setReporterName($name)
return $this;
}

/**
* set issue assignee name
*
* @param $name
*
* @return $this
*/
public function setAssigneeName($name)
{
if (is_null($this->assignee)) {
Expand All @@ -76,6 +89,13 @@ public function setAssigneeName($name)
return $this;
}

/**
* set issue priority name
*
* @param $name string
*
* @return $this
*/
public function setPriorityName($name)
{
if (is_null($this->priority)) {
Expand All @@ -100,6 +120,13 @@ public function setDescription($description)
return $this;
}

/**
* add a Affects version
*
* @param $name version name string
*
* @return $this
*/
public function addVersion($name)
{
if (is_null($this->versions)) {
Expand All @@ -113,17 +140,13 @@ public function addVersion($name)
return $this;
}

public function addComment($comment)
{
if (is_null($this->comment)) {
$this->comment = new \JiraRestApi\Issue\Comments();
}

array_push($this->versions, $v);

return $this;
}

/**
* add issue label
*
* @param $label string
*
* @return $this
*/
public function addLabel($label)
{
if (is_null($this->labels)) {
Expand All @@ -135,6 +158,13 @@ public function addLabel($label)
return $this;
}

/**
* set issue type
*
* @param $name string
*
* @return $this
*/
public function setIssueType($name)
{
if (is_string($name)) {
Expand Down

0 comments on commit 0b1defa

Please sign in to comment.