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 8311377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:47:47+00:00 2026-06-08T19:47:47+00:00

So, I made a model for a changeset, get a changeset with 2 artifacts

  • 0

So, I made a model for a changeset, get a changeset with 2 artifacts and fetch the Artifacts field. When I console log that, I get two items. I have another item ( a task ) that I push into this field. When I console log the artifacts array, I get three items.

But then when I set the field, either directly or using set(), I console log the changeset and it still only thinks there are two artifacts. What might I be doing wrong?

Rally.data.ModelFactory.getModel({
      type: 'Changeset',
      success: function(model) {
             model.load( '1234', {
                  fetch: [ 'Artifacts' ],
                  callback: function(result, operation) {
                            if ( operation.wasSuccessful() ){
                                var artifacts = result.get('Artifacts');
                                if ( ! artifacts ) {
                                    artifacts = [];
                                }
                                artifacts.push( item );
                                console.log( artifacts );

                                result.data.Artifacts = artifacts;
                                //result.set('Artifacts', artifacts);

                                console.log( result );
                                result.save( {
                                    callback: function( result, operation ) {
                                    console.log( "After saving: ", operation );
                                    }
                                    } );
                            }
                   }
             })
      }
});
  • 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-08T19:47:49+00:00Added an answer on June 8, 2026 at 7:47 pm

    This was fixed with a SaaS release over the weekend. One can now send an array of artifacts and that array replaces the original list, like other arrays in the WSAPI.

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

Sidebar

Related Questions

I have a simple app that consists of: Model Items Filter criteria applied to
I have made a data model, and now I've made a 2nd version. All
I have a model called Invoice .I have made necessary CRUD for Invoice model
I have a fairly complex model for one of my pages; it's made of
I use Acceleo in order to generate code with a model I have made.
I have a Core Data model entity NoteObject that has a transformable type arrayOfTags
I have an iPhone app that is using CoreData. I recently made some minor
I would like to re-render a list made using Marionette.ItemView when the corresponding model
I've created a simple webapp with user authentication. I've made two models: Users for
Wondering if any of you can help me: I've made a signup modal that

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.