Cannot change milestone through API
Reported by Thomas Aylott | May 3rd, 2008 @ 10:11 PM
Because of my last bug #818, I tried to edit the milestone through the API instead.
I tried something like:
t = Ticket.find(3, :params => { :project_id => JAVA.id})
t.milestone_id
# => 10347
t.milestone_id = 10348
# => 10348
t.save
# => true
t1 = Ticket.find(t.id, :params => { :project_id => JAVA.id })
t1.milestone_id == t.milestone_id
# => false
t1.milestone_id
# => 10347
As you can see it's nor working.
Is this supposed to work? Is there a better way to do this? Should it return something other than true on save when it's not actually saving?
Comments and changes to this ticket
-
Will May 5th, 2008 @ 12:33 AM
- → State changed from new to open
Does the milestone have a date applied to it? it is tripping up when no date is applied and you try to assign a ticket to it, and this should be fixed early this week.
-
Thomas Aylott May 5th, 2008 @ 12:40 AM
Yeah, this is #806 and #818 all over again, just through the API instead of the normal web UI.
Except it is a bit different since doing a
ticket.savethrough the api doesn't result in an error of any kind, it just returnstrueas if it had actually worked.I haven't really used ActiveResource much before, but my assumption is that if the server is failing to save everything properly it should generate
falseor a frowny face :( or something. -
Will May 6th, 2008 @ 12:43 PM
Thomas, can you check this now? It looks like it's working on the ui side of things. So it SHOULD be working.
-
-
Thomas Aylott May 6th, 2008 @ 01:08 PM
the API allows you to set any random number as the
ticket.milestone_idbut the ui of the site just shows "no milestone" unless themilestone_idmakes sense for your project.So, everything seems to be working fine.
Thanks
-
Will May 6th, 2008 @ 01:16 PM
- → State changed from open to resolved
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Using Lighthouse to track Lighthouse.
