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

  • Home
  • SEARCH
  • 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 8446167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:51:26+00:00 2026-06-10T09:51:26+00:00

I have created a custom kanban board. Inside the board, I have a button

  • 0

I have created a custom kanban board. Inside the board, I have a button on the cards for someone to claim when they are going to code review an item. Upon clicking the button, I wanted to go check the live data to ensure nobody else claimed since the screen was loaded.

I have all that working if its a story, but if its a defect I had an issue. So in reviewing the code, I noticed I did a Rally.data.ModelFactory.getModel then a model.load.

So I am thinking this should be changed to .getModels and change types to incorporate both stories and defect. However, when I do this, how do I get that into the search properly. I am getting stuck with how to load it up and check.

Code snippet is:

if (this.getRecord().get("StoryStatus") == "Review Ready") {
                    if (this.getRecord().get("CodeReviewedBy") == '') {
                        content.add([{ xtype: 'button',
                            text: 'I will review',
                            scale: 'small',
                            listeners: {
                                click: function (btn, e, eOpts) {
                                    // Verify nobody has claimed it yet !
                                    var mod = Rally.data.ModelFactory.getModels({
                                        types: ['HierarchicalRequirement', 'Defect'],
                                        success: function (models) {
                                            var model;
                                            debugger;
                                            if (models.Defect) model = models.Defect
                                            else model = models.HierarchicalRequirement;

                                            model.load(eOpts.scope.record.internalId, {
                                                fetch: ['CodeReviewedBy'],
                                                success: function (currentRecord) {
                                                    var currentCRB = currentRecord.get("CodeReviewedBy");
                                                    if (currentCRB) {
                                                        window.alert('While you were sitting around doing nothing, ' + currentCRB + ' already started reviewing this code');
                                                    } else {
                                                        var con = Rally.environment.getContext();
                                                        currentRecord.set("CodeReviewedBy", con.context.user._refObjectName);
                                                        currentRecord.save();
                                                        location.reload(true);
                                                        //eOpts.scope.refresh();
                                                    }

                                                }
                                            });
                                        }
                                    });
                                    this.refresh()
                                },
                                scope: this
                            }
                        }]);
                    } else {
                        content.add([{ xtype: 'label',
                            html: '<b>Being reviewed by: </b>' + this.getRecord().get("CodeReviewedBy") + '<br>'
                        }]);
                    }
                }
  • 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-10T09:51:27+00:00Added an answer on June 10, 2026 at 9:51 am

    Once you have the record you can actually use the self property to get the model- that will save you having to use ModelFactory.getModels again.

    var model = this.getRecord().self;
    model.load(this.getRecord().get('ObjectID'), {
        //fetch, success, etc...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have created one custom list view item for my application. Suppose for any
i have created custom components in flex where i have used a button,i want
I have created custom ctextbox with the following code. But I am not able
I have created custom controller by following http://code.google.com/apis/maps/documentation/javascript/controls.html Is there any way to remove
In my app i have created custom cell with 2labels and one check button.when
I have UITableView.In that i have created custom cell with accessory button.Now by clicking
I have created custom posts and I want one page in my site to
I have created custom jQuery UI widget called uiPopover, very similar to UI-dialog (in
I have created custom cell in which there are n number of image views.

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.