/** * 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)))))); }
/** * 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))); }
/** * 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)))); }