def make_story_xml(self, name=None, description=None, story_type=None, owned_by=None, requested_by=None, estimate=None, current_state=None, labels=None): story = XMLBuilder('story') if name is not None: story.name(name) if description is not None: story.description(description) if requested_by is not None: story.requested_by(requested_by) if owned_by is not None: story.owned_by(owned_by) if story_type is not None: story.story_type(story_type) if estimate is not None: story.estimate(str(estimate), type='integer') if current_state is not None: story.current_state(current_state) if labels is not None: label_string = ',' if labels: label_string = ','.join(labels) story.labels(label_string) return str(story)