lib/pivotal-tracker/story.rb in pivotal-tracker-0.5.10 vs lib/pivotal-tracker/story.rb in pivotal-tracker-0.5.12

- old
+ new

@@ -37,11 +37,13 @@ element :requested_by, String element :owned_by, String element :labels, String element :jira_id, Integer element :jira_url, String - element :other_id, Integer + element :other_id, String + element :zendesk_id, Integer + element :zendesk_url, String element :integration_id, Integer element :deadline, DateTime # Only available for Release stories has_many :attachments, Attachment, :tag => 'attachments', :xpath => '//attachments' @@ -63,10 +65,10 @@ def update(attrs={}) update_attributes(attrs) response = Client.connection["/projects/#{project_id}/stories/#{id}"].put(self.to_xml, :content_type => 'application/xml') return Story.parse(response) end - + def move(position, story) raise ArgumentError, "Can only move :before or :after" unless [:before, :after].include? position Story.parse(Client.connection["/projects/#{project_id}/stories/#{id}/moves?move\[move\]=#{position}&move\[target\]=#{story.id}"].post('')) end