AnsweredAssumed Answered

What is correct Type to use in queries for portfolio items

Question asked by 10453bc9ffaf458c442ffae35b87bb29 on Jun 23, 2016
I'm trying to write what I thought would be a simple query to get one particular portfolio item from our workspace.
Here is my query code:
queryConfig = { type : 'PortfolioItem', key : 'stories', query: '(Name = "Maintenance_Txn_Policy_Change")', fetch: 'Name,Tags' };
rallyDataSource = new rally.sdk.data.RallyDataSource('__WORKSPACE_OID__', '__PROJECT_OID__', '__PROJECT_SCOPING_UP__', '__PROJECT_SCOPING_DOWN__'); rallyDataSource.findAll(queryConfig, showStories);
When I run this rallyDataSource comes back as undefined.

If I modify my code to look for userstories in stead:
queryConfig = { type : 'hierarchicalrequirement', key : 'stories', query: '(Iteration.Name = "Iteration 2")', fetch: 'Name,Tags' };
rallyDataSource = new rally.sdk.data.RallyDataSource('__WORKSPACE_OID__', '__PROJECT_OID__', '__PROJECT_SCOPING_UP__', '__PROJECT_SCOPING_DOWN__'); rallyDataSource.findAll(queryConfig, showStories);
I get correct answers.

So my quesiton is, what do I specify as the Type: in the query to get portfolio items, in particular, Features? I've tried some examples I've seen on this site (portfoilioitem, portfolioitem/Feature, etc.) but nothing seems to work.

Outcomes