Hi all,
Not sure if there is a way around this challenge I am facing. I have the following html app that shows a ranked list of defects in my project. This works fine and the defects can be re-ordered as needed.
The problem I face is that whenever anyone creates a new defect in my project, it automatically gets ranked # 1 and thus shows at the top of this html view. Is there anything I can add to this html script that would make any new defects get ranked at the bottom of the ranked list instead?
Thanks in advance for any pointers.
Tommy
-------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<title>My Ranked List - Defects Ranked</title>
<script type="text/javascript" src="/apps/2.0/sdk.js"></script>
<script type="text/javascript">
Rally.onReady(function() {
Ext.define('Rally.example.PolicyServer', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
Rally.data.ModelFactory.getModel({
type: 'Defect',
pageSize: 200,
success: function(model) {
var filter = Ext.create('Rally.data.QueryFilter', {
property: 'State',
operator: '!=',
value: 'Closed'
});
filter = filter.and({
property: 'SalesforceCaseNumber',
operator: '!=',
value: 'null'
});
filter.toString();
this.grid = this.add({
xtype: 'rallygrid',
model: model,
columnCfgs: [
'Rank',
'FormattedID',
'c_AffectedCustomers',
'SalesforceCaseNumber',
'Name',
'State',
'SubmittedBy',
'Owner',
'OriginatingSystemCreationDate',
'CreationDate',
'LastUpdateDate',
'Discussion'
],
context: this.getContext(),
enableRanking: true,
defaultSortToRank: true,
storeConfig: {
filters : [filter]
}
});
},
scope: this
});
}
});