Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:42:09+00:00 2026-06-08T01:42:09+00:00

I would like to only show stories/defects from the current iteration on a kanban

  • 0

I would like to only show stories/defects from the current iteration on a kanban type board to help with our process.

So I found this example out here on SO and added the QUERY line to filter out my iteration. But now I am wanting this to come from the iterationdropdown box provided by rally.

I added it to the screen, and it shows ok, but how do I actually hook it up to my query?

    <!DOCTYPE html>
    <html>
    <head>
    <title>My Custom App</title>

    <!--Include SDK-->
    <script type="text/javascript" src="https://rally1.rallydev.com/apps/2.0p/sdk.js"></script>

    <!--App code-->
    <script type="text/javascript">

        Rally.onReady(function() {

            Ext.define('CustomApp', {
                extend: 'Rally.app.App',
                componentCls: 'app',
                mappedToField:"State",
                mappedFromField:"KanbanState",

                fieldNameMap:{
                   a:"New",
                   b:"New",
                   c:"Defined",
                   d:"In-Progress",
                   e:"In-Progress",
                   f:"Completed",
                   g:"Completed",
                   h:"Accepted"
                },

                launch: function() {
                     this.add({
                        xtype:'rallyiterationcombobox',
                        itemId: 'iterationComboBox',
                    });

                    this.add({
                        xtype:'rallycardboard',
                        types: ["Defect", "HierarchicalRequirement"],
                        query: 'Iteration.Name contains "UB Sprint 29"',
                        attribute: this.mappedFromField,
                        listeners:{
                            beforecarddroppedsave:function(cardboard, card) {
                                //map the new state from on this card to the new state
                                var newState = this.fieldNameMap[card.record.get(this.mappedFromField)];
                                card.record.set(this.mappedToField, newState);
                            },
                            scope:this
                        }
                    });
                }
            });

            Rally.launchApp('CustomApp', {
                name: 'My Custom App'
            });

        });

    </script>


    </head>
    <body class="myApp">
    </body>
    </html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:42:10+00:00Added an answer on June 8, 2026 at 1:42 am

    If you want to filter by iteration you need to add a listener to the iteration combobox and have it create the board based upon the current selected iteration.

    <!DOCTYPE html>
    

    My Kanban by Iteration

    <!--Include SDK-->
    <script type="text/javascript" src="https://rally1.rallydev.com/apps/2.0p2/sdk.js"></script>
    
    <!--App code-->
    <script type="text/javascript">
    
        Rally.onReady(function() {
    
            Ext.define('CustomApp', {
                extend: 'Rally.app.App',
                componentCls: 'app',
                mappedToField:"State",
                mappedFromField:"KanbanState",
    
                kanban:undefined,
                fieldNameMap:{
                    a:"New",
                    b:"New",
                    c:"Defined",
                    d:"In-Progress",
                    e:"In-Progress",
                    f:"Completed",
                    g:"Completed",
                    h:"Accepted"
                },
    
                launch: function() {
                    this.add({
                        xtype:'rallyiterationcombobox',
                        itemId: 'iterationComboBox',
                        listeners: {
                            select: this.createKanban,
                            ready: this.createKanban,
                            scope: this
                        }
                    });
                },
                createKanban:function(combo, records) {
                    if (this.kanban) {
                        this.kanban.destroy();
                    }
                    var filters = [];
                    if (records.length) {
                        filters.push({
                            property: 'Iteration',
                            value: records[0].get("_ref")
                        });
                    }
                    this.kanban = this.add({
                        xtype:'rallycardboard',
                        types: ["Defect", "HierarchicalRequirement"],
                        attribute: this.mappedFromField,
                        listeners:{
                            beforecarddroppedsave:function(cardboard, card) {
                                //map the new state from on this card to the new state
                                var newState = this.fieldNameMap[card.record.get(this.mappedFromField)];
                                card.record.set(this.mappedToField, newState);
                            },
                            scope:this
                        },
                        storeConfig:{
                            filters:filters
                        }
                    });
                }
            });
    
            Rally.launchApp('CustomApp', {
                name: 'My Kanban by Iteration'
            });
    
        });
    
    </script>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my web app, I would like to show an Admin menu link only
I would like to store only .txt filenames from a specific dir (let's say:
I have written the following in my gridview i would like to show only
I would like to show only show part of the full exception and stacktrace.
I would like to show only the posts of the last X day's on
For sorting, I would like to show only one arrow aligned with the column
I would like to use a spinner but only show the arrow on the
I would like to show only a-z0-9 in a string, and the other characters
I would like to create a small function, which should show the current status
I would like to show some links only to authenticated users in an asp.net

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.