title: Custom Grid Query Syntax for Rally Portfolio Items for specific Parent Project via WebService API
body: <p>We're starting to experiment with Rally's WebService API for Portfolio Items.  We don't have any issues when creating Custom GRID apps in Rally, but are running into an issue when trying to create Custom HTML apps.  We're trying to query a list of portfolio items (lowest level in portfolio item hierarchy) for a specific parent portfolio item.</p>
  
  <p>We're using the following query, which works for Custom GRID apps, but not for Custom HTML apps:</p>
  
  <pre><code>'(Parent.FormattedID = "P123")',
  </code></pre>
  
  <p>We're using the following API version:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/apps/1.32/sdk.js?apiVersion=1.38"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Here's the relavant code we're using within the HTML Custom Grid:   </p>
  
  <pre><code>function onLoad() {
      rallyDataSource = new rally.sdk.data.RallyDataSource(
          '123456789',
          '123456790',
          '__PROJECT_SCOPING_UP__',
         '__PROJECT_SCOPING_DOWN__');
  
     var queryConfig = [];
  
     queryConfig.push({
         type: 'portfolioitem',
         key  : 'pisQueryKey',
         query: '(Parent.FormattedID = "P123")',
         fetch: 'FormattedID,Name,PortfolioItemType,PlannedStartDate,PlannedEndDate,LeafStoryCount,LeafStoryP&gt;lanEstimateTotal,PercentDoneByStoryCount,PercentDoneByStoryPlanEstimate'
     });
  
      rallyDataSource.findAll(queryConfig, drawTable);                    
  }
  </code></pre>
  
  <p>We only see "There is nothing to display." under the table headers.  Thanks in advance for any suggestions and/or alternative solutions!</p>