これは、AppSDK2 の Cardboard に関する既存の制限によるものです。
以下のような単純なコードは、Task オブジェクトの基本的な厚紙を作成しますが、従来の TaskBoard アプリのボードのようには見えません。cardConfig を使用して、デフォルトの Name と Owner に加えて、フィールドをカードに追加することができます。
var myCardConfig = {
xtype: 'rallycard',
fields: ['ToDo', 'Estimate', 'WorkProduct'],
editable: true
}
ただしeditable: true、名前のみを編集可能にします。
カードで編集できるフィールドはまだ非常に限られています。
また、垂直スイムレーンの外側のタスク カードの左側にワークプロダクト (ユーザー ストーリー) カードを追加する簡単な方法もありません。
Ext.define('CustomApp', {
extend: 'Rally.app.TimeboxScopedApp',
componentCls: 'app',
scopeType: 'iteration',
onScopeChange: function(scope) {
this._iteration = scope.record.get('_ref');
var myCardConfig = {
xtype: 'rallycard',
fields: ['ToDo', 'Estimate', 'WorkProduct'],
editable: true
}
if(!this.board) {
this.board = this.add({
xtype: 'rallycardboard',
types: ['Task'],
attribute: 'State',
cardConfig: myCardConfig,
storeConfig: {
filters: [scope.getQueryFilter()]
}
});
} else {
this.board.refresh({
storeConfig: {
filters: [scope.getQueryFilter()]
}
});
}
this.iteration = scope.getRecord();
}
});