irphilli / tracker_api

Ruby Wrapper for Pivotal Tracker v5 API
MIT License
107 stars 109 forks source link

How do I remove a story's estimate? #119

Open jasonnoble opened 6 years ago

jasonnoble commented 6 years ago

Steps to reproduce:

story = project.create_story(name: 'Some story name')
story.estimate = 3.0
story.save
story.estimate      # => 3.0
story.estimate = nil
story.save
story.estimate      # => 3.0

I think the issue is:

https://gist.github.com/jasonnoble/80e618cf39874d26bdae884b4e79b33f#file-gistfile1-txt-L43 (works to set estimate to 3.0)

vs

https://gist.github.com/jasonnoble/80e618cf39874d26bdae884b4e79b33f#file-gistfile1-txt-L78 (does not include the request to set estimate to nil)

forest commented 6 years ago

Did you try setting it to 0? I think there is an issue with the dirty tracking that doesn't handle nil correctly. This is just a guess. I need to investigate.