Reputation: 21
While working on fetching data in Rally I am receiving an error when trying to query for artifact type 'RecycleBinEntry'. The exact error message states, "Not able to parse artifact type: recyclebinentry". I have used approach to get data for other types of artifacts including hierarchicalrequirements and defects. I wonder if this is because the artifact is listed as a non-creation type in the RallyAPI. When I execute a query directly on the API site I get results as expected.
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);
Upvotes: 1
Views: 376
Reputation: 21
This turned out to be a simple matter of having an older version of the Web Service API referenced in my project, a simple mistake, my thanks to user4211235 for reminding me of the possibility.
Upvotes: 1