Don't pass owner_ids if we're not claiming
If we're not claiming a story, don't pass owner_ids to the API at all, rather than passing it as null, which causes the API to return an error.
This commit is contained in:
parent
1722eac5f8
commit
9d792b8c6e
1 changed files with 10 additions and 5 deletions
|
@ -911,11 +911,16 @@ element."
|
|||
is not set")
|
||||
nil))))
|
||||
|
||||
(org-clubhouse-update-story-internal
|
||||
clubhouse-id
|
||||
:workflow_state_id workflow-state-id
|
||||
:owner_ids (when update-assignee?
|
||||
(list (org-clubhouse-whoami))))
|
||||
(if update-assignee?
|
||||
(org-clubhouse-update-story-internal
|
||||
clubhouse-id
|
||||
:workflow_state_id workflow-state-id
|
||||
:owner_ids (if update-assignee?
|
||||
(list (org-clubhouse-whoami))
|
||||
(list)))
|
||||
(org-clubhouse-update-story-internal
|
||||
clubhouse-id
|
||||
:workflow_state_id workflow-state-id))
|
||||
(message
|
||||
(if update-assignee?
|
||||
"Successfully claimed story and updated clubhouse status to \"%s\""
|
||||
|
|
Loading…
Reference in a new issue