Rally 1.4 バージョンを使用しており、Rally API を使用して完全な欠陥オブジェクトを返そうとしています。
String myQuery = "(FormattedID = " + defectID + ")";
QueryResult myArtifactReturn = RallyService.RallyService.query(SelectedWorkspace, "Defect", myQuery, "", true, 0, 100);
long mycount = myArtifactReturn.TotalResultCount;
if (mycount > 0)
{
SelectedDefect = (Defect)myArtifactReturn.Results[0];
SelectedDefect = (Defect)RallyService.RallyService.read(SelectedDefect);
}
このリクエストは、欠陥が見つかってオブジェクトが返されると機能しますが、私が直面している問題は、利用できる情報と利用できない情報があることです。たとえば、名前、説明、および終了日を取得できますが、FixedInBuild、VerifiedInBuild のプロパティは null に設定されているため表示できません。
提供された URL で Rally Web サービスを介してメソッドを呼び出すと、すべてのオブジェクトがはっきりと表示されるので、クエリを作成する方法に関係しているに違いありません。
クエリの詳細は次のとおりです。
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("RallyIntegrationInfo")]
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://rallydev.com/webservice/v1_40/service", ResponseNamespace="http://rallydev.com/webservice/v1_40/service", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlElementAttribute("queryOriginalReturn")]
public QueryResult query(Workspace workspace, string artifactType, [System.Xml.Serialization.XmlElementAttribute("query")] string query1, string order, bool fetch, long start, long pagesize) {
object[] results = this.Invoke("query", new object[] {
workspace,
artifactType,
query1,
order,
fetch,
start,
pagesize});
return ((QueryResult)(results[0]));
}
これは UserStory オブジェクトでも発生します。この場合、テスト ケースとスケジュールされた状態が取得されず、代わりにこれらが null として表示されます。
どんな助けでも大歓迎です。
ありがとう