Ejemplo n.º 1
0
 /**
  * Adds the given <b>$labels</b> to the story identified by <b>$story</b>
  * and returns the updated story instance.
  *
  * @param integer $storyId
  * @param array $labels
  * @return \SimpleXMLElement
  */
 public function addLabels($storyId, array $labels)
 {
     return simplexml_load_string($this->client->put("/projects/{$this->project}/stories/{$storyId}", http_build_query(array('story' => array('labels' => join(',', $labels))))));
 }
Ejemplo n.º 2
0
 /**
  * Adds the given <b>$labels</b> to the story identified by <b>$story</b>
  * and returns the updated story instance.
  *
  * @param integer $storyId
  * @param array $labels
  * @return object
  */
 public function addLabels($storyId, array $labels)
 {
     return json_decode($this->client->put("/projects/{$this->project}/stories/{$storyId}", json_encode($labels)));
 }
Ejemplo n.º 3
0
 /**
  * Replaces the Description field on a story
  * and returns the updated story instance.
  *
  * @param integer $storyId
  * @param string $description
  * @return object
  */
 public function replaceStoryDescription($storyId, $description)
 {
     return json_decode($this->client->put("/projects/{$this->project}/stories/{$storyId}", json_encode(array('description' => $description))));
 }