Note that there are some explanatory texts on larger screens.

plurals
  1. POLookback 2.0 and Lumenize example
    primarykey
    data
    text
    <p>API 2.0 RC1. I can call the lookback snapshot store to return the records I want, but then I can't get the calculator to work correctly. The Lumenize functions are undefined: TypeError: Rally.data.lookback.Lumenize is undefined</p> <p>I run the query, works as expected. But then, how do I "Lumenize", i.e. consolidate to granularity of a day, and generate the correct summary output? The following does not work, and all of the examples are pre-2.0RC1.</p> <pre><code>//works to get the raw data Ext.create('Rally.data.lookback.SnapshotStore', { filters: [ { property: '_TypeHierarchy', operator: 'in', value: ['Defect', 'HierarchicalRequirement'] }, { property: 'Iteration', operator: 'in', value: iteration }, { property: '_ValidFrom', operator: '&gt;=', value: this.startDate } ], autoLoad: true, fetch: ['Name','FormattedID','ScheduleState','PlanEstimate','Iteration','Release','Project'], listeners: { load: { fn: this._onDataLoaded, scope: this } } }); //Lumenize not working _onDataLoaded: function(store, data) { var config = { startOn: this.startDate, endBefore: this.endDate, tz: 'America/Denver', workDays:'Monday,Tuesday,Wednesday,Thursday,Friday', granularity: 'day', metrics: {"field": "PlanEstimate"}, summaryMetricsConfig: [ { "field": "PlanEstimate", "as": "Planned", "display": "line", "f": "sum" }, { "field": "PlanEstimate", "as": "Completed", "f": "filteredSum", "filterField": "ScheduleState", "filterValues": "Accepted", "display": "column" } ] }; var calculator = new Rally.data.lookback.Lumenize.TimeSeriesCalculator(config); var myData = calculator.prepareChartData(store); var mySummary = calculator.getResults(); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload