1
我試着用下面的代碼通過使用Project的FormattedID獲取項目的ObjectID ...但沒有得到任何結果。請讓我知道,哪裏出錯。查詢通過java中的Rally Rest API獲取項目的ObjectID
String projectFormattedID = "EH-HELLO-WORLD";
QueryRequest projectRequest = new QueryRequest("project");
storyRequest.setFetch(new Fetch("ObejctID"));
storyRequest.setQueryFilter(new QueryFilter("FormattedID", "=", projectFormattedID));
QueryResponse storyQueryResponse = restApi.query(storyRequest);
System.out.println(storyQueryResponse.getResults());
拿到結果時,我改變了查詢過濾器如下: 'storyRequest.setQueryFilter(new QueryFilter(「Name」,「=」,projectFormattedID));'' –