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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:09:06+00:00 2026-06-11T03:09:06+00:00

With Rally’s rest api, how can I query to find a user’s email address?

  • 0

With Rally’s rest api, how can I query to find a user’s email address?

For instance, I have this query to get a defect which contains the full name of the user who opened it and the user who owns the defect:

 QueryRequest defectRequest = new QueryRequest("defect");
 defectRequest.setFetch(new Fetch("Project", "LastUpdateDate", "FormattedId"));
 defectRequest.setQueryFilter(new QueryFilter("Project.Name", "=", rallyProjectName).and(new QueryFilter("LastUpdateDate", ">", defectTimestamp.getTimestamp())));
 QueryResponse projectDefects = rallyApi.query(defectRequest);

Now I’d like to take the Submitted By and Owner users from the defect and get their email addresses.

  • 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-11T03:09:08+00:00Added an answer on June 11, 2026 at 3:09 am

    Make certain to include the fields “Owner” and “SubmittedBy” on your Fetch for the Defects:

       defectRequest.setFetch(new Fetch("Project", "LastUpdateDate", "FormattedId", "Owner", "SubmittedBy"));
    

    Then the Owner and SubmittedBy fields on each returned Defect (if populated in Rally and not null) will have a reference to the corresponding User object in Rally. Then your inclination to do a second request for this is spot on. It’s easiest to just use that ref and do a GetRequest straight against the ref. Here’s how on the Owner field as an example (forgive the clumsy try/catch block – it’s catching empty Owner fields):

            QueryResponse projectDefects = restApi.query(defectRequest);
            if (projectDefects.wasSuccessful()) {
                for (JsonElement result : projectDefects.getResults()) {
                    JsonObject defect = result.getAsJsonObject();
                    try {
                        JsonObject ownerJsonObject = defect.get("Owner").getAsJsonObject();
                        String ownerRef = ownerJsonObject.get("_ref").getAsString();
                        GetRequest ownerRequest = new GetRequest(ownerRef);
                        GetResponse ownerResponse = restApi.get(ownerRequest);
                        JsonObject ownerObj = ownerResponse.getObject();
                        System.out.println(String.format("Read owner. EmailAddress = %s",
                                ownerObj.get("EmailAddress").getAsString()));
                    } catch (java.lang.IllegalStateException ise) {
                        // System.out.println("IllegalStateException caught: ");
                        // ise.printStackTrace();
                    }
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the Rally REST API to integrate user story data from Rally into
This example in the documentation shows how to query the Rally WS API, using
I'm making a bunch of Rally API calls using the C# Rally Rest API
I am using the Python Toolkit for Rally REST API to update defects on
I am using the Java Toolkit for Rally REST API, and I am concerned
In traditional Rally Webservices REST, if I wanted to get all Defects and Stories
I have a query for the Rally Analytics which returns a data set larger
In Rally, I was trying to query for a items in the tree that
I want to create a new Rally user with the following C# code DynamicJsonObject
I customized the content of Defect in my Rally workspace adding a new custom

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.