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")
 | 
					                       is not set")
 | 
				
			||||||
                       nil))))
 | 
					                       nil))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            (org-clubhouse-update-story-internal
 | 
					            (if update-assignee?
 | 
				
			||||||
             clubhouse-id
 | 
					                (org-clubhouse-update-story-internal
 | 
				
			||||||
             :workflow_state_id workflow-state-id
 | 
					                 clubhouse-id
 | 
				
			||||||
             :owner_ids (when update-assignee?
 | 
					                 :workflow_state_id workflow-state-id
 | 
				
			||||||
                          (list (org-clubhouse-whoami))))
 | 
					                 :owner_ids (if update-assignee?
 | 
				
			||||||
 | 
					                                (list (org-clubhouse-whoami))
 | 
				
			||||||
 | 
					                              (list)))
 | 
				
			||||||
 | 
					              (org-clubhouse-update-story-internal
 | 
				
			||||||
 | 
					                 clubhouse-id
 | 
				
			||||||
 | 
					                 :workflow_state_id workflow-state-id))
 | 
				
			||||||
            (message
 | 
					            (message
 | 
				
			||||||
             (if update-assignee?
 | 
					             (if update-assignee?
 | 
				
			||||||
                 "Successfully claimed story and updated clubhouse status to \"%s\""
 | 
					                 "Successfully claimed story and updated clubhouse status to \"%s\""
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue