문제

I am trying to create a gird of user stories and defects together so that they can be properly prioritized by our product owner. I have tried using the 2.0 API to do this but have hit a wall. Looks like the Rally.ui.grid.Grid requires a single model but there are no model types that can be used to mix both User Stories and Defects together.

I tried using the getModels method but that only creates two distinct models and the grid doesn't like that. The grid requires only one model.

I have also tried creating my own model based on Artifacts but to register that with the ModelFactory I have to create a factory class which I don't know how to do.

Is there another way to do this given the 2.0 API?

도움이 되었습니까?

해결책

You may use use Rally.data.wsapi.artifact.Store instead of Rally.data.wsapi.Store. See an example in this github repo.

var myStore = Ext.create('Rally.data.wsapi.artifact.Store',{
        models: ['User Story', 'Defect'],
        autoLoad:true,
        //...
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top