Recent Posts by amanking

Subscribe to Recent Posts by amanking 9 post(s) found

Oct 22, 2008
Avatar amanking 9 post(s) #2545

Topic: Mingle API / Number of pages returned by API?

Hey all, I just noticed that in Mingle 2.1 (the latest release of Mingle as of 22 Oct 2008), you can fetch all the cards without all this pagination business… it’s as simple as: http://yourname:password@your.mingle.server:8080/projects/test_project/cards.xml?page=all

Check it out here: http://studios.thoughtworks.com/mingle-agile-project-management/2.1/help/mingle_api_cards.html

Thanks, Mingle team! You really listen to your users. :-)

 
Oct 20, 2008
Avatar amanking 9 post(s) #2511

Topic: Mingle API / API for card update stops working after a while

Hi, I myself found the answer. A response of 422 is raised when you send a RESTful request which is valid, however, the resource being updated results in a validation error or an exception. More info can be found here: http://www.ruby-forum.com/topic/98002

In my case, I was appending text to a custom card property and it ran over 256 characters after some time, hence leading to an error. (“Any text” data type for a card property has a limit of 256 characters.)

 
Oct 15, 2008
Avatar amanking 9 post(s) #2481

Topic: Mingle API / API for card update stops working after a while

Is anyone else also facing this issue that if you update a particular card via the API for a few times, say more than 5-6 times, it stops working, ie, it no longer updates?

I’m using Rails 2.1.0 with ActiveResource to do this.

On a successful update, Mingle log shows the following: *
2008-10-15 18:52:15,284 [/]

Processing CardsController#update (for 127.0.0.1 at 2008-10-15 18:52:15) [PUT]

2008-10-15 18:52:15,285 [/] Session ID: 4a0e9da793d966faa8588d7d83fc0c0e

2008-10-15 18:52:15,285 [/] Parameters: {“card”=>{“name”=>”sub 63”, “modified_by_user_id”=>1, “project_id”=>4, “updated_at”=>Wed Oct 15 13:19:23 UTC 2008, “card_type_name”=>”Card”, “number”=>98, “id”=>430, “description”=>”This is a response”, “version”=>13, “created_by_user_id”=>2, “created_at”=>Mon Oct 13 10:37:24 UTC 2008}, “controller”=>”cards”, “action”=>”update”, “project_id”=>”api_test”, “id”=>”430”, “format”=>”xml”}

2008-10-15 18:52:15,298 [/] Cookie set: last-visited-project=api_test; path=/; expires=Thu, 15 Oct 2009 13:22:15 GMT

2008-10-15 18:52:15,495 [/] Completed in 0.20900 (4 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.02500 (11%) | 200 OK [http://localhost/projects/api_test/cards/430.xml]

And after some more updates on the same card, the Mingle log shows this (and doesn’t update the card in question): *
2008-10-15 18:53:07,750 [/]

Processing CardsController#update (for 127.0.0.1 at 2008-10-15 18:53:07) [PUT]

2008-10-15 18:53:07,750 [/] Session ID: 99c02fd3fb60f3eada256b0e915b6bf6

2008-10-15 18:53:07,751 [/] Parameters: {“card”=>{“name”=>”sub 63”, “modified_by_user_id”=>2, “project_id”=>4, “updated_at”=>Wed Oct 15 13:22:15 UTC 2008, “card_type_name”=>”Card”, “number”=>98, “id”=>430, “description”=>”one last try”, “version”=>15, “created_by_user_id”=>2, “created_at”=>Mon Oct 13 10:37:24 UTC 2008}, “controller”=>”cards”, “action”=>”update”, “project_id”=>”api_test”, “id”=>”430”, “format”=>”xml”}

2008-10-15 18:53:07,763 [/] Cookie set: last-visited-project=api_test; path=/; expires=Thu, 15 Oct 2009 13:23:07 GMT

2008-10-15 18:53:07,845 [/] Completed in 0.09400 (10 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.01700 (18%) | 422 Unprocessable Entity [http://localhost/projects/api_test/cards/430.xml]


Why do I get the “422 Unprocessable Entity” response?

Any help will be appreciated.

 
Jul 11, 2008
Avatar amanking 9 post(s) #1842

Topic: Mingle API / Adding attachments

I’m interested in knowing about this too. Does the Card API allow adding and/or downloading attachments? If not, is it planned to allow this in a future release? Thanks.

 
Jun 26, 2008
Avatar amanking 9 post(s) #1780

Topic: Mingle General Discussion / Reset value of DateTime property

How did you create a DateTime card property? I’m only able to create a Date type property. Any time information that goes along with the Date when I set the value via Mingle API gets lost.

Can we please have a DateTime property type so that we can track time too?

 
Jun 16, 2008
Avatar amanking 9 post(s) #1714

Topic: Mingle API / Accessing comments?

Is there a way to access a card’s comments via the API?

card[comment] can be used to add a new comment to the card but comments are not returned in the response when a card is fetched.

 
Jun 16, 2008
Avatar amanking 9 post(s) #1712

Topic: Mingle API / Need a .NET working example

Thanks Badri. It works for me now. And yeah, I was being silly and updating the config file in the installation directory, not the data directory. Umm… could you please update the help text to explicitly say, “To enable basic authentication, you need set the basic_auth_enabled configuration option to true in the Mingle data directory/config/auth_config.yml file, where Mingle data directory is the path to the mingle data directory you chose during installation, and NOT the directory where Mingle is installed”. :-) It will be a help for users like me who are always in a hurry to get things running.

 
Jun 13, 2008
Avatar amanking 9 post(s) #1707

Topic: Mingle API / Need a .NET working example

I have the exact same problem, with Mingle 2.0.1 (latest download as of today) installed on my Windows XP. The APIs work from Firefox after I’ve logged in to Mingle myself, but not when I’m not logged in (and hence not from Ruby ActiveResource or Net::HTTP code either).

I tried various configuration options but could not get it to work. I’ve posted about it here: http://studios.thoughtworks.com/discussion/forums/10/topics/612

 
Jun 13, 2008
Avatar amanking 9 post(s) #1704

Topic: Mingle API / How do I turn on basic auth in Mingle 2.0?

I see a test_auth_config.yml and it has the following contents:

password_format: strict
basic_authentication_enabled: true
basic_authentication:
authentication:
ldap_settings: #ldapgroupattribute: #ldapbinduser: #ldapport: #ldapgroupdn: #ldapfilter: #ldapserver: #ldap_map_mail: #ldapobjectclass: #ldapbasedn: #ldap_map_fullname: #ldapgroupobjectclass: #ldapbindpasswd:
cas_settings: #cas_uri: #cas_port: #cas_host:

If we rename this file to auth_config.yml will basic authentication be turned on? Do we need to put values for basic_authentication and authentication? And I’m supposing that basic_authentication_enabled is the property to set and not basic_auth_enabled (the latter is the one mentioned in Help)?

Also after making the changes, do we need to restart the Mingle server?