Rally Software

  • 1.  App Custom - Getting US's

    Posted Nov 23, 2018 03:24 AM

    Hi, I'm trying to create a custom app and I would need to get a list of the US belonging to the current project I'm in and the children's. I have tried several options and I have reviewed examples that are in the git of other similar applications but I can not get this information.

     

    Surely it's something easy, but I do not have much experience programming. I have also reviewed the CA Agile Central documentation as well as the SDK. Can you help me? Or tell me where I can find more information to help me?

     

    Thank you very much.



  • 2.  Re: App Custom - Getting US's
    Best Answer

    Posted Nov 26, 2018 03:23 AM

    Javier,

     

    Are you trying to do some manipulation with these stories that is not available from Work Views, a Custom List or the User Stories Page?  All of these will obey project scoping on the page and can be filtered or columns added.

     

    Michael



  • 3.  Re: App Custom - Getting US's

    Posted Nov 26, 2018 05:01 AM

    Hello Michael,

     

    Effectively, I would like to obtain in a variable the sum of all the estimate points of the US belonging to the Sprint that I have selected and the childrens.

     

    The objective is to create a Burndown that instead of showing the hours of the tasks, show the estimate points of the US.



  • 4.  Re: App Custom - Getting US's

    Posted Nov 27, 2018 07:01 AM

    Hi again,

     

    With this code:

    _makeStore: function(name){     
          Ext.create('Rally.data.WsapiDataStore', {
                model: 'UserStory',
                limit: Infinity,
                fetch: ['FormattedID','Name','PlanEstimate'],
                autoLoad: true,
                filters: [{
                      property: 'Iteration.Name',
                      value: "name"
                }],
                listeners: {
                      change: this._onDataLoaded,
                      scope: this
                }
          });

    },

    _onDataLoaded: function(store, data){
          puntosTotales = 0;
          Ext.Array.each(data, function(story) {
                var s = story.get('PlanEstimate');
                var n = story.get('Name');
                if(s != null){
                      puntosTotales += s;
                }
          }, this);
    },

     

     

    I can get the sum of the story points in my iteration with scoping down. The problem is that i am obtaining the data at the end of everything and i need the data earliear to do some operations.

    What can i change (the listeners?) to get the data at the init and not at finish?

    Any help would be appreciated