2013-12-18 16 views

回答

0

功能已發行的屬性,並且可以通過釋放被過濾:

Ext.define('CustomApp', { 
    extend: 'Rally.app.TimeboxScopedApp', 
    componentCls: 'app', 
    scopeType: 'release', 
    comboboxConfig: { 
     fieldLabel: 'Select a Release:', 
     labelWidth: 100, 
     width: 300 
    }, 

    addContent: function() { 
     this._makeStore(); 
    }, 

    _makeStore: function(){ 
     Ext.create('Rally.data.WsapiDataStore', { 
      model: 'PortfolioItem/Feature', 
      fetch: ['FormattedID','Name'], 
      pageSize: 100, 
      autoLoad: true, 
      filters: [this.getContext().getTimeboxScope().getQueryFilter()], 
      listeners: { 
       load: this._onDataLoaded, 
       scope: this 
      } 
     }); 
    }, 

    onScopeChange: function() { 
     this._makeStore(); 
    }, 

您可能會看到在github上回購here這個例子的源代碼。

倡議沒有發佈屬性,但可以按日期過濾,例如, PlannedEndDate
PlannedStartDate,ActualEndDate,ActualStartDate。

相關問題