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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:52:33+00:00 2026-06-13T11:52:33+00:00

QueryRequest allreleases = new QueryRequest(release); allreleases.setQueryFilter(new QueryFilter(project, =, project_ref)); QueryResponse resp = restApi.query(allreleases); if(resp.wasSuccessful()){

  • 0
QueryRequest allreleases = new QueryRequest("release");
    allreleases.setQueryFilter(new QueryFilter("project", "=", project_ref));
    QueryResponse resp = restApi.query(allreleases);
    if(resp.wasSuccessful()){

        System.out.println("list of all the release numbers available...");
        for(JsonElement result : resp.getResults()){
            System.out.println(result.getAsJsonObject().get("Name").getAsString());
            if(result.getAsJsonObject().get("_refObjectName").getAsString().equals("release 1")){
                System.out.println("Sdsadsad");
                temp_ref = result.getAsJsonObject().get("_ref").getAsString();
                System.out.println(temp_ref);
                }
            }
        }

    JsonObject updatt = new JsonObject();
    updatt.addProperty("release", temp_ref);

    UpdateRequest req1 = new UpdateRequest(testset_ref, updatt);
    UpdateResponse resp1 = restApi.update(req1);

    if(resp1.wasSuccessful()){
        System.out.println("release added to testset");

    }

I am using this piece of code to make an update to an already created testset (adding a “release”). The code runs but the release field doesn’t get updated. I don’t know what am I doing wrong. Any hints?

Thanks.

  • 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-13T11:52:34+00:00Added an answer on June 13, 2026 at 11:52 am

    Field names in the WSAPI are case sensitive, so you likely need “Release” instead of “release” in order for the update to work correctly. Inspecting the warnings collection on the response using the code above would have shown a message that “release” was an unknown field and it was ignored.

    Correct:

    updatt.addProperty("Release", temp_ref);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This query is working to get the defects from a specific project: QueryRequest defectRequest
I'm new to Doctrine 2, so I'm using the documentation on docs.doctrine-project.org as a
Here is the basic code i am attempting to use: //create new QueryRequest QueryRequest
I am sending a query to check whether there is a testcaseresult associated with
I use this line to build a drive query request.setQ(fullText contains ' + originalFileName
With Rally's rest api, how can I query to find a user's email address?
How to get query Statistics such as Time Taken to execute and other parameters
This is the following query that I have in my views.py: #parse json function
I have a query request-uri in the form of /node/143 (just an example of
I am trying to send a query to a server running Solr as follows:

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.