在Rally中获取数据时,我在尝试查询工件类型“RecycleBinEntry”时收到错误。确切的错误消息指出“无法解析工件类型:recyclebinentry”。我已经使用方法来获取其他类型工件的数据,包括分层要求和缺陷。我想知道这是否是因为工件在RallyAPI中被列为非创建类型。当我直接在API网站上执行查询时,我会得到预期的结果。
Request reqDeletesRequest = new Request("RecycleBinEntry");
reqDeletesRequest.Fetch = new List<string> { "ObjectID", "DeletionDate", "Type", "ID" };
reqDeletesRequest.Limit = 2500;
reqDeletesRequest.Query = new Query("DeletionDate", Query.Operator.GreaterThanOrEqualTo, DateTime.Today.AddDays(-5).ToString("yyyy-MM-dd"));
reqDeletesRequest.Workspace = Settings.WorkspaceRef; // This path is correct
QueryResult qrCompletedDefectsResults = restApi.Query(reqDeletesRequest);