2014-02-14 40 views

回答

0

您可以使用Rally Lookback API請求通過formattedID找到適當的objectId。 例如:我需要名爲TC12345的測試用例的search objectId。所以,我必須將以下GET查詢:

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/WORKSPACE_ID/artifact/snapshot/query.js?find= { 「_UnformattedID」:12345, 「_ TypeHierarchy」: 「TestCase的」} &欄= [ 「對象ID」]

其中:

輸出可(參照搜索 「的ObjectID:22697085352」 在最後):

{ 
_rallyAPIMajor: "2" 
_rallyAPIMinor: "0" 
Errors: [0] 
Warnings: [0] 
ThreadStats: { 
cpuTime: "10.0" 
waitTime: "0" 
blockedTime: "1" 
waitCount: "1" 
blockedCount: "2" 
}- 
Timings: { 
preProcess: 0 
findEtlDate: 36 
allowedValuesDisambiguation: 1 
mongoQuery: 9 
authorization: 3 
formattedId: 0 
suppressNonRequested: 0 
allowedValuesHydration: 0 
compressSnapshots: 0 
TOTAL: 49 
}- 
GeneratedQuery: { 
find: { 
_UnformattedID: 619 
_TypeHierarchy: { 
$in: [3] 
0: -51012 
1: 9467271631 
2: 10486304042 
- 
}- 
_ValidFrom: { 
$lte: "2014-09-16T14:21:35.731Z" 
}- 
}- 
limit: 100 
skip: 0 
fields: { 
ObjectID: 1 
Project: 1 
}- 
}- 
TotalResultCount: 1 
StartIndex: 0 
PageSize: 100 
ETLDate: "2014-09-16T14:21:35.731Z" 
Results: [1] 
0: { 
ObjectID: 22697085352 
}- 
- 
} 
相關問題