I am using ActiveResource to create a new Mingle story card which does create the card and sets some of the basic parameters like name and description.
@card = Card.new( :name => "This is my title", :description => "This is description")
@card.save
My question is how to set some of the other properties on a card. I've read a couple of posts where people were using 'cp_' and the property name to set the value like this prior to saving it:
card.cp_status = "open"
This doesn't set the property on the card prior to saving it. I did see in the newer API docs (3.2) if you did a standard HTTP POST you'd set the params like this:
card[properties][][name]=status
card[properties][][value]=openAnyone have an example of how this should happen while creating the card via ActiveResource?
Comments
1 comment
I personally use net/https in Ruby to call the Mingle API. However, I can hazard a guess as to what the syntax would be. I would try:
Please let me know whether or not that works. I'm offering a quick solution in hopes that it will work. If it doesn't, I'll try to spend some time to get you something that definitely works. :) The Mingle log parameters might give you some good feedback as well.
I think the "cp_" format is the style for version 1 of the Mingle API. The Minglr utility uses ActiveResource to integrate with Mingle. That was built against version 1 of our API, but there might be something in there to help you.
Thanks,
Jay
Please sign in to leave a comment.