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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:59:55+00:00 2026-06-05T04:59:55+00:00

I am new to using the Rally API for .NET and I would be

  • 0

I am new to using the Rally API for .NET and I would be very appreciative for any help. I have obtained the story object but I am not sure how to update it with a new defect. I can create new defects following various examples but they are not associated to any particular story. My current error brings back: [“Ignored JSON element hierarchicalrequirement.Defects during processing of this request.”].

Thanks in advance for any insights.

  • 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-05T04:59:56+00:00Added an answer on June 5, 2026 at 4:59 am

    The collection of Defects on a HierarchicalRequirement is read-only, so you can’t associate Defects to a Story by making changes to the Defect collection. What you can do, however, is to set the Requirement attribute of the Defect to the Ref of an existing Story, when either creating/updating Defects using the API. Here’s a quick example:

    //Set our Workspace and Project scopings
    String workspaceRef = "/workspace/12345678910";
    String projectRef = "/project/12345678911";
    String userRef = "/user/12345678912";
    String storyRef = "/hierarchicalrequirement/12345678913";
    
    for (int i = 0; i < 3; i++)
    {
        DynamicJsonObject myDefect = new DynamicJsonObject();
    
        myDefect["Name"] = "My Defect from REST: " + i;
        myDefect["Priority"] = "Normal";
        myDefect["Workspace"] = workspaceRef;
        myDefect["Project"] = projectRef;
        myDefect["SubmittedBy"] = myUserReference;
        myDefect["Requirement"] = storyRef ;
    
        CreateResult createDefect = restApi.Create("Defect", myDefect);
        Console.WriteLine("Created: " + myDefect["Name"] + "\n");
    
        DynamicJsonObject fetchedDefect = restApi.GetByReference(createDefect.Reference, "FormattedID");
        Console.WriteLine("Created Defect with FormattedID: " + fetchedDefect["FormattedID"]);
    
    }
    

    Where the long integers are the ObjectID’s (OID’s) of the objects in Rally used in the ref’s of interest.

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

Sidebar

Related Questions

I have really simple few lines of Facebook app, using the new Facebook API:
I'm doing some queries using the new Rally Lookback API and am wondering what
I have been using box-api v1.0 and now see there is a new one
Very new to using Raphael.js I'm looking at the tutorials and I am able
I'm implementing a web API using the REST for ASP.NET MVC framework (MVC 2).
I have basic authentatication working with REST API using curl: curl -X POST -H
I am using ASP.NET-MVC and nHibernate for the first time. Great tools, but big
I am pretty new to the Facebook API and am using the Javascript SDK
I'm currently working on an ASP.NET project where I'm using the Google Maps API
Using EF4 Codefirst RC and MVC .NET I have a Strongly typed view I

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.