fix: Actually pass description when creating story

Oops!

Fixes #12
This commit is contained in:
Griffin Smith 2019-02-18 12:06:28 -05:00
parent 4b4c0f1f4a
commit 5682f4bb57

View file

@ -562,7 +562,7 @@ If the epics already have a CLUBHOUSE-EPIC-ID, they are filtered and ignored."
(project_id . ,project-id) (project_id . ,project-id)
(epic_id . ,epic-id) (epic_id . ,epic-id)
(story_type . ,story-type) (story_type . ,story-type)
(description . ,description)))) (description . ,(or description "")))))
(when workflow-state-id (when workflow-state-id
(push `(workflow_state_id . ,workflow-state-id) params)) (push `(workflow_state_id . ,workflow-state-id) params))
@ -627,15 +627,16 @@ If the stories already have a CLUBHOUSE-ID, they are filtered and ignored."
(-map (-map
(lambda (elt) (lambda (elt)
(let* ((title (plist-get elt :title)) (let* ((title (plist-get elt :title))
(description
(save-mark-and-excursion
(goto-char (plist-get elt :begin))
(org-clubhouse-find-description-drawer)))
(story (org-clubhouse-create-story-internal (story (org-clubhouse-create-story-internal
title title
:project-id project-id :project-id project-id
:epic-id epic-id :epic-id epic-id
:story-type story-type)) :story-type story-type
(description :description description)))
(save-mark-and-excursion
(goto-char (plist-get elt :begin))
(org-clubhouse-find-description-drawer))))
(org-clubhouse-populate-created-story elt story) (org-clubhouse-populate-created-story elt story)
(when (functionp then) (when (functionp then)
(funcall then story)))) (funcall then story))))