I have tried several things to query both the team member name and capacity in Rally developer depending upon iteration. One of the challenges I run into is that the team member name and capacity are under two different types. So, matching the team member names with the capacity has been a challenge.
One of my failed attempts in accomplishing this is as follows:
var queryConfig = {
key: "teamMember",
type: "User",
fetch: "UserName,Role",
query: '(TeamMemberships != "")'
};
var queryByUserName = {
key: "teamDataByUser", type: "UserIterationCapacity",
fetch: "Capacity,ObjectID",
query: rally.sdk.util.Query.or(ownerQueries)
};
You should be able to get the user’s capacity and that users name in one query using dependent field fetching.
This query will return data that looks like: