Rally Software

  • 1.  Fetch All User stories for a parent Project using Rally SDK

    Posted Nov 07, 2018 12:20 PM

    How to fetch all user stories (including the child project's user stories) for a given project using Rally SDK 2.1?



  • 2.  Re: Fetch All User stories for a parent Project using Rally SDK

    Broadcom Employee
    Posted Nov 07, 2018 04:07 PM

    You could use the sample we have in the examples

    <!DOCTYPE html>
    <html>
    <head>
        <title>Grid Example</title>

        <script type="text/javascript" src="/apps/2.1/sdk.js"></script>

        <script type="text/javascript">
            Rally.onReady(function() {
                Ext.define('Rally.example.SimpleGrid', {
                    extend: 'Rally.app.App',
                    componentCls: 'app',
               
                    launch: function() {
                        this.add({
                            xtype: 'rallygrid',
                            columnCfgs: [
                                'FormattedID',
                                'Name',
                                'Owner'
                            ],
                            context: this.getContext(),
                            enableEditing: false,
                            showRowActionsColumn: false,
                            storeConfig: {
                                model: 'userstory'
                            }
                        });
                    }
                });
               

                Rally.launchApp('Rally.example.SimpleGrid', {
                  name: 'Grid Example'
                });
            });
        </script>

        <style type="text/css">
           
        </style>
    </head>
    <body></body>
    </html>

     

    Then set the project explicitly within the Custom HTML app and make sure you're scoped downwards.

     

    If you wanted to define the project and/or the downward scope within the app, then maybe morse07 has a suggestion?  I couldn't find where to explicitly define the project scoping behavior in the Grid app.



  • 3.  RE: Re: Fetch All User stories for a parent Project using Rally SDK

    Posted Aug 14, 2020 02:39 PM
    Hi,

    I am trying to fetch all "PortfolioItem/Features" which Parent.CreationDate >= XX.

    The query works partially. Some values are not being retrieved. For instance, when I look at Parent.Children it might show, say, 7 Children, but the query 
    (Parent.CreationDate >= XXXX) just shows 5. Some queries returns full Children, others don't.

    It seems a bug to me.

    Would it be possible for someone to confirm ?


  • 4.  Re: Fetch All User stories for a parent Project using Rally SDK

    Posted Mar 15, 2019 11:43 AM

    This is an awesome way to get it.

    But what if I want to search within rally using a query?

    (parent.project = "project ABC")  = getting an error "could not parse".

    Any advice?

     

    Note: The organization I work with do not allow us to use the APIs.



  • 5.  Re: Fetch All User stories for a parent Project using Rally SDK

    Broadcom Employee
    Posted Mar 19, 2019 10:49 AM

    Hi Wagner,

     

    Here is a SDK sample on how to include filters/filtering to your pages:

    https://docs.ca.com/ca-agile-central/saas/apps/2.1/doc/#!/example/filterable-grid 

     

    I'm not sure what you mean by: "The organization I work with do not allow us to use the APIs". The APIs are the underlying calls into Rally already. The SDK is calling the APIs itself as well as any other toolkit and connector we have.

     

    Either way, I hope this sample code helps you. If not, then my recommendation is that you open a support case so that we can have a closer look into your issue.

     

    Thanks,

    Sagi



  • 6.  RE: Re: Fetch All User stories for a parent Project using Rally SDK

    Posted Aug 17, 2020 12:59 PM
    If you're looking for User Stories tied to a specific lowest level portfolio item, you need to specify that in the query. Also, if using the Project name, you need to call that out.

    If your lowest level portfolio item is Feature, this is what your query would look like:  (Feature.Project.Name = "project ABC") 

    Hope that helps!

    ------------------------------
    Terry Ginzburg
    ------------------------------