Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',
    launch: function() {
        //Write app code here
        console.log('My first Rally App for Features Sudhir WOOT!!!');
        var myUserStoryStore=Ext.create('Rally.data.wsapi.Store', {
            model: 'PortfolioItem/Feature',
            autoLoad: true,
            listeners: {
                load: function(myUStoryStore, myStorydata, success) {
                    //process data
                    console.log('!!Got User Feature Data',myUStoryStore,myStorydata,success);
                    // Add grid
                    var myUserStoryGrid=Ext.create('Ext.Container', {
                        items: [{
                            xtype: 'rallygrid',
                            columnCfgs: [
                                'FormattedID',
                                'Name'
                            ],
                            storeConfig: {
                                model: 'PortfolioItem/Feature'
                            }
                        }],
                        renderTo: Ext.getBody()
                    });
                    //Add Grid ends
                    console.log('My Feature grid',myUserStoryGrid);
                    this.add(myUserStoryGrid);
                },
                scope:this
            },
            fetch: ['FormattedID','Name', 'LastUpdateDate']
        });
        //API Docs: https://help.rallydev.com/apps/2.0/doc/
    }
});

@@ -69,24 +69,1396 @@
 Cls: 'app',%0A
+    launch : function()%7B%0A        console.log('My first Rally App for Features Sudhir WOOT!!!');%0A        this._loadData();%0A    %7D,%0A    //Get Data from Rally%0A    _loadData:function()%7B%0A       ///%0A        var myFeatureStore=Ext.create('Rally.data.wsapi.Store', %7B%0A            model: 'PortfolioItem/Feature',%0A            autoLoad: true,%0A            listeners: %7B%0A                load: function(myUStoryStore, myStorydata, success) %7B%0A                    //process data%0A                    console.log('!!Got User Feature Data',myUStoryStore,myStorydata,success);%0A                    // Add grid%0A                    this._loadGrid(myFeatureStore);%0A                    //Add Grid ends%0A                 //   console.log('My Feature grid',myUserStoryGrid);%0A                   // this.add(myUserStoryGrid);%0A                %7D,%0A                scope:this%0A            %7D,%0A            fetch: %5B'FormattedID','Name', 'LastUpdateDate'%5D%0A        %7D);%0A%0A        ///%0A    %7D,%0A%0A    //Create and Show Grid of User Features%0A    _loadGrid :function(myFeatureStore)%7B%0A        var myFeatureGrid=Ext.create('Rally.ui.grid.Grid', %7B%0A                store: myFeatureStore,%0A                columnCfgs: %5B%0A                    'FormattedID',%0A                    'Name', 'LastUpdateDate'%0A                %5D%0A        %7D);%0A        console.log('@@@@@@@@What is this?',this);%0A        this.add(myFeatureGrid);%0A%0A%0A    %7D%0A%0A    /*%0A
     launch: 
@@ -1466,24 +1466,24 @@
 unction() %7B%0A
-
         //Wr
@@ -2246,16 +2246,33 @@
   'Name'
+,'LastUpdateDate'
 %0A       
@@ -2875,18 +2875,26 @@
 .0/doc/%0A
-
     %7D%0A
+    */%0A%0A
 %7D);%0A

refactored code into functions