Rally Question: Can I get the Parent of a Portfolio Item Feature?

77 Views Asked by At

I'm creating a custom grid where I want to display the portfolio items that are features and also the parent of the feature (which would be the portfolio item initiative). Is there any way I can do this?

var portfolioItemStore = Ext.create('Rally.data.wsapi.Store', {
            model: 'Portfolio Item', 
            autoLoad: true,
            listeners: {
                // ...
            },
            filters: [
                {
                    property: 'PortfolioItemType.Name',
                    value: 'Feature'
                }
            ],
            fetch: ['Name', 'PortfolioItemType', 'Parent'] // possible edit here
        });
1

There are 1 best solutions below

0
Andrew McGrath On

You were on the right track. This is a basic grid to get you what you want:

this.add({
    xtype: 'rallygrid',
    columnCfgs: [
        'FormattedID',
        'Name',
        'Owner',
        'Parent'
    ],
    context: this.getContext(),
    enableEditing: false,
    showRowActionsColumn: false,
    storeConfig: {
        model: 'PortfolioItem/Feature'
    }
});

More grid examples can be found within the SDK documentation: https://rally1.rallydev.com/docs/en-us/saas/apps/2.1/doc/index.html#!/example