public function update($id, array $params)
    {
        $defaults = [
            'id' => $id,
            'subject' => null,
            'notes' => null,
            'private_notes' => false,
            'category_id' => null,
            'priority_id' => null,
            'status_id' => null,
            'tracker_id' => null,
            'assigned_to_id' => null,
            'due_date' => null,
        ];
        $params = $this->cleanParams($params);
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->buildXML($params);

        return $this->put('/issues/'.$id.'.xml', $xml->asXML());
    }
public function update($id, array $params)
    {
        $defaults = [
            'id' => $id,
            'subject' => null,
            'notes' => null,
            'private_notes' => false,
            'category_id' => null,
            'priority_id' => null,
            'status_id' => null,
            'tracker_id' => null,
            'assigned_to_id' => null,
            'due_date' => null,
        ];
        $params = $this->cleanParams($params);
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->buildXML($params);

        return $this->put('/issues/'.$id.'.xml', $xml->asXML());
    }
public function update ( $ id , array $ params ) { $ defaults = [ 'id' => $ id , 'subject' => null , 'notes' => null , 'private_notes' => false , 'category_id' => null , 'priority_id' => null , 'status_id' => null , 'tracker_id' => null , 'assigned_to_id' => null , 'due_date' => null , ] ; $ params = $ this -> cleanParams ( $ params ) ; $ params = $ this -> sanitizeParams ( $ defaults , $ params ) ; $ xml = $ this -> buildXML ( $ params ) ; return $ this -> put ( '/issues/' . $ id . '.xml' , $ xml -> asXML ( ) ) ; }
Update issue information's by username, repo and issue number. Requires authentication.

@see http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Updating-an-issue

@param string $id     the issue number
@param array  $params

@return string|false
Update issue information s by username repo and issue number . Requires authentication .