logo
down
shadow

Increment Query for Features & User Stories in ADO


Increment Query for Features & User Stories in ADO

Content Index :

Increment Query for Features & User Stories in ADO
Tag : azure-devops , By : ┬Áilad
Date : January 11 2021, 03:32 PM

With these it helps I was able to resolve this by using the State in the query. A Feature won't have User Stories under it unless it is Active. So, by filtering out New and items that are in the Backlog, it results in all work.
I expanded my query to include Scenarios and here is what it looks like:

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

How do I build a grid of PortfolioItem/Features with associated User Stories that have no children?


Tag : development , By : DK.
Date : March 29 2020, 07:55 AM
Any of those help A custom grid on My Dashboard with Object: PortfolioIetm Feature and query UserStories.DirectChildrenCount = 0 it will produce this error:
Could not parse: Attribute "UserStories" on type PortfolioItems is not allowed in query expressions.
var stories = feature.getCollection('UserStories');
    <!DOCTYPE html>
<html>
<head>
    <title>GridExample</title>

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



    <script type="text/javascript">
        Rally.onReady(function () {
Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',

    launch: function() {
        Ext.create('Rally.data.WsapiDataStore', {
            model: 'PortfolioItem/Feature',
            fetch: ['FormattedID','Name','UserStories'],
            pageSize: 100,
            autoLoad: true,
            listeners: {
                load: this._onDataLoaded,
                scope: this
            }
        });
    },

    _createGrid: function(features) {
         this.add({
            xtype: 'rallygrid',
            store: Ext.create('Rally.data.custom.Store', {
                data: features,
                pageSize: 100
            }),

            columnCfgs: [
                {
                   text: 'Formatted ID', dataIndex: 'FormattedID', xtype: 'templatecolumn',
                    tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
                },
                {
                    text: 'Name', dataIndex: 'Name'
                },
                {
                    text: 'Story Count', dataIndex: 'StoryCount'
                },
                {
                    text: 'User Stories', dataIndex: 'UserStories', 
                    renderer: function(value) {
                        var html = [];
                        Ext.Array.each(value, function(userstory){
                            html.push('<a href="' + Rally.nav.Manager.getDetailUrl(userstory) + '">' + userstory.FormattedID + '</a>')
                        });
                        return html.join(', ');
                    }
                }
            ]

        });
    },
    _onDataLoaded: function(store, data){
                var features = [];
                var pendingstories = data.length;
                //debugger;
                Ext.Array.each(data, function(feature) {
                            var f  = {
                                FormattedID: feature.get('FormattedID'),
                                Name: feature.get('Name'),
                                _ref: feature.get("_ref"),
                                StoryCount: feature.get('UserStories').Count,
                                UserStories: []
                            };

                            var stories = feature.getCollection('UserStories');
                           stories.load({
                                fetch: ['FormattedID'],
                                callback: function(records, operation, success){
                                    Ext.Array.each(records, function(story){
                                        var number = story.get('DirectChildrenCount');  
                                        if (number == 0) {
                                            f.UserStories.push({_ref: story.get('_ref'),
                                                        FormattedID: story.get('FormattedID')
                                                    });}
                                    }, this);

                                    --pendingstories;
                                    if (pendingstories === 0) {
                                        this._createGrid(features);
                                    }
                                },
                                scope: this
                            });
                            features.push(f);
                }, this);
    }             
});


            Rally.launchApp('CustomApp', {
                name:"GridExample"
                //parentRepos:""
            });

        });
    </script>




    <style type="text/css">
.app {
     /* Add app styles here */
}

    </style>

</head>
<body></body>
</html>

how to sort a grid of user stories by formatted id of their parent stories


Tag : development , By : harley.holt
Date : March 29 2020, 07:55 AM
I wish this helpful for you Here is an example where a grid is sorted by a Parent's story's FormattedID. The sorter is added to a Rally.data.custom.Store, and not to Rally.data.WsapiDataStore
    <!DOCTYPE html>
<html>
<head>
    <title>TCofUS</title>

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



    <script type="text/javascript">
        Rally.onReady(function () {
Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',

    launch: function() {
        Ext.create('Rally.data.WsapiDataStore', {
            model: 'UserStory',
            fetch: ['FormattedID','Name','HasParent','Parent'],
            pageSize: 100,
            autoLoad: true,
            listeners: {
                load: this._onDataLoaded,
                scope: this
            }
        });
    },

    _createGrid: function(stories) {
         this.add({
            xtype: 'rallygrid',
            store: Ext.create('Rally.data.custom.Store', {
                data: stories,
                pageSize: 100,
                 sorters: [
            {
            property: 'Parent',
            direction: 'DESC'
            }
            ],
            }),
            columnCfgs: [
                {
                   text: 'Formatted ID', dataIndex: 'FormattedID', xtype: 'templatecolumn',
                    tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
                },
                {
                    text: 'Name', dataIndex: 'Name'
                },
                {
                    text: 'Parent', dataIndex: 'Parent',
                   renderer: function(parent) {
                        return ('<a href="' + Rally.nav.Manager.getDetailUrl(parent) + '">' + parent + '</a>');
                   }
                }
            ]

        });
    },
    _onDataLoaded: function(store, data){
                var stories = [];
                Ext.Array.each(data, function(story) {
                            var parent = story.get('Parent');
                            var s  = {
                                FormattedID: story.get('FormattedID'),
                                Name: story.get('Name'),
                                _ref: story.get("_ref"),
                                 Parent: (parent && parent.FormattedID) || 'None',
                            };
                            stories.push(s);
                },
                this);
                 this._createGrid(stories);
    }             
});


            Rally.launchApp('CustomApp', {
                name:"TCofUS",
                //parentRepos:""
            });

        });
    </script>


    <style type="text/css">
.app {
     /* Add app styles here */
}

    </style>

</head>
<body></body>
</html>
 Parent: (parent && parent.FormattedID) || 'None'

JIRA Process for Splitting User Stories into Smaller User Stories


Tag : development , By : onurtopcu
Date : March 29 2020, 07:55 AM
should help you out The concept of an epic is that it is a very large user story that requires breaking down.
In Scrum the backlog is a process of just in time refinement. We start with coarse grained ideas and as we get closer to starting work on something we get it in to better and better shape.

Does C# with NUnit supports Allure features like Steps, Features/Stories, Parameters


Tag : development , By : adrianmooreuk
Date : March 29 2020, 07:55 AM
seems to work fine Yes, you should be able to use Allure features.
Take a look at the Allure C# port. You will also need the Nunit adapter.

How to get the list of all User stories including child stories using /slm/webservice/v2.0/hierarchicalrequirement API


Tag : development , By : jaredsmiller
Date : March 29 2020, 07:55 AM
seems to work fine You're really close. It seems like you've already found the project scoping docs: https://rally1.rallydev.com/slm/doc/webservice/projectscope.jsp
I think if you just swap your (Project.Name = "My_Parent_Project") query to instead use the project=/project/12345 query string parameter and include projectScopeDown=true you should be all set.
Related Posts Related QUESTIONS :
  • Can one connect to Azure DevOps Service using Office365 gcc account?
  • Difference between basic and Visual Studio professional subscription access levels in Azure DevOps
  • Best way to authenticate in Azure DevOps YAML pipeline to access my Azure DevOps package feed (used by Paket commands)
  • How to connect Azure Devops with GitHub without giving it access to all repositories?
  • Are the agents released when the pipeline is waiting for approval?
  • NuGet Packager with version using build number, adding -beta
  • How to specify Artifact version name in Azure DevOps?
  • Azure pipeline using matrix environment variable in step condition
  • REST API, Get Work Item ID from CD Release Pipeline
  • How to configure an Azure DevOps release to complete all its stages before starting a new one
  • Build Fails with NU1101: Unable to find package Microsoft.Bot.Protocol.StreamingExtensions.NetCore
  • Colate custom field information from bugs and PBIs
  • Azure WebApp Deployment task not recognizing variable
  • How to use a test plan (it is a manual test) on Azure devops 2019 CI/CD pipeline
  • No agents are registered or you do not have permission to view the agents
  • Global sprint capacity per team member?
  • Add attachment to Azure DevOps from Sql Server varbinary field
  • Why am I getting "Exit code 100 returned from process: file name 'tf'"
  • Azure DevOps Build Overwriting ConnectionString section in web.config
  • How do I grant permissions to manage test plans in Azure dev-ops
  • Git branching strategies for CI/CD on Azure Devops 2019
  • artifacts-credprovider and VSS_NUGET_EXTERNAL_FEED_ENDPOINTS with Docker
  • Logging on to DevOps from Protractor automated test
  • Queue builds while agents are offline
  • Show items from last week in Azure DevOps
  • Extract languages from repo in Azure Devops
  • Connect containerized self-hosted agent with Azure DevOps
  • Sprint planning - Is it best practice to keep a backlog item scoped to a single sprint?
  • git artifacts not downloaded included on build agent when using yml and service connecetion
  • Azure DevOps, extra packages in Artifact Feed
  • Pre-define work items for inherited process and auto create it in Azure Boards
  • Checks (approvals) for a deployment job are blocking the entire stage
  • List all checked out items in repository
  • Add username and password to a yaml config file with Azure Pipelines
  • Moving tasks to next sprint but burndown chart is empty
  • Passing NuGet 'Pack' arguments in Azure DevOps Build Pipeline
  • Azure pipeline - How do I deploy code to Preregistered application
  • How does Nuget Restore task work? Does nuget.config in the solution have to match that of in the build server?
  • Equivalent of teamcity.build.branch.is_default in Azure Devops
  • Retrieve item by path in a branch different than default master in Azure DevOps repository using GitHttpClient
  • Connect to backend of VSO
  • Azure DevOps pipeline release Error: No package found with specified pattern: D:\a\r1\a\**\*.zip
  • Develop an app based on VSO API - Where can I find the database schema?
  • OpsHub migration utility failure due to large file attachment
  • Get/modify number of paid users and quotas in Azure DevOps Services
  • How to export my azure machine learning model to json
  • Setting up build and deployment for a solution which have three web projects that needs to be deployed with Azure DevOps
  • MTM/VSTS Query for two-level hierarchy work items
  • Script Azure AD B2C [DevOps]
  • How to deploy multiples csv files in azure table storage at a time using powershell script
  • How to listen the runscope test result?
  • Fail a Build if Code Coverage is Low in Visual Studio Online
  • Can the main home page of Visual Studio Online be customized?
  • API for automating Azure DevOps Pipelines?
  • How to modify System.CreatedBy field in VSTS via API call
  • Azure storage table entries deletion
  • Manual Deploy - How to defer deployment for later?
  • Is there a way to set a date and time (timezone) in Azure DevOps CI/CD build pipeline
  • Azure Pipeline: Queue time Agent pool selection for yaml based pipeline
  • Azure DevOps build scheduled trigger for every hours is not working
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com