tracker_api icon indicating copy to clipboard operation
tracker_api copied to clipboard

How do I remove a story's estimate?

Open jasonnoble opened this issue 8 years ago • 1 comments

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)

jasonnoble avatar Dec 08 '17 20:12 jasonnoble

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.

forest avatar Feb 13 '18 16:02 forest