lib/pivotal-tracker/story.rb in pivotal-tracker-0.5.9 vs lib/pivotal-tracker/story.rb in pivotal-tracker-0.5.10
- old
+ new
@@ -128,11 +128,11 @@
xml.labels "#{labels}"
xml.project_id "#{project_id}"
# See spec
# xml.jira_id "#{jira_id}"
# xml.jira_url "#{jira_url}"
- xml.other_id "#{other_id}"
- xml.integration_id "#{integration_id}"
+ xml.other_id "#{other_id}" if other_id
+ xml.integration_id "#{integration_id}" if integration_id
xml.created_at DateTime.parse(created_at.to_s).to_s if created_at
xml.accepted_at DateTime.parse(accepted_at.to_s).to_s if accepted_at
xml.deadline DateTime.parse(deadline.to_s).to_s if deadline
}
end