Skip to content

Commit

Permalink
Ajout de la création de composants
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinbuntu committed May 13, 2014
1 parent d4eeade commit 9b7df01
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/JiraApi/Jira.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,20 @@ public function addComment($comment, $issueKey)

return $this->request->lastRequestStatus();
}

/**
* Permet la création d'un composant dans un projet
*
* @param array $component Information du composant à fournir à l'API
*
* @return bool Renvoi false en cas d'erreur
*/
public function createComponent($component)
{
$this->request->openConnect($this->host . 'component/', 'POST', $component);
$this->request->execute();

return $this->request->lastRequestStatus();
}
}
?>

0 comments on commit 9b7df01

Please sign in to comment.