Masabi / clubhouse2-ruby

A Ruby gem for interacting with the Clubhouse V2 API, with support for complex queries and caching.
https://rubygems.org/gems/clubhouse2
12 stars 8 forks source link

Workflow State not working #8

Open abelavila140 opened 6 years ago

abelavila140 commented 6 years ago

Im trying to create a story and put the story in the right state, but it keeps going to the default state. This is what im doing:

params = {
      name: card['name'],
      description: "#{card['desc']} \n#{card['url']}",
      project_id: 869,
      workflow_state_id: 500001055,
      external_id: card['id'],
      labels: [{name: "Bug"}, {name: 'High Priority'}]
    }
    clubhouse = Clubhouse::Client.new(api_key: settings.clubhouse['token'])
    response = clubhouse.create_story(params)

All but the workflow_state_id is posting the right data

abelavila140 commented 6 years ago

Just looked at the code and notice that you exclude workflow_state_id when creating a story. Is there a reason why this gets excluded?