I am having a bit of trouble accessing portfolio items using the Ruby toolkit. The examples show how to retrieve almost every object EXCEPT for portfolio items. Following the general trend, my assumption is that one would use the following to retrieve them, given that project objects do not provide references to them:
rally = RallyRestAPI.new(:base_url => @base_url, :username => @user_name, :password => @password)
rally.find_all(:portfolio_item).each{
|pi| print pi.formatted_i_d + "\n"
}
However, that does not seem to be the case, as I receive the following error:
<OperationResultError>Not able to parse artifact type: portfolioitem</OperationResultError>
Make sure that you use webservices API version is 1.26 or higher – Portfolio Items were first introduced into the object model starting with 1.26. I believe the Ruby REST API defaults to Webservices API 1.17 if not specified explicity. You can explicitly define it as follows: