0
我想使用http api客戶端查詢V1(從Excel VBA)。我可以查詢一個特定的史詩,並從中獲取數據。 例如VersionOne Web API - 如何獲取給定史詩的所有故事/任務?
/rest-1.v1/Data/Epic?sel=Workitem.Number,Epic.AssetType,Name,Status.Name,Swag,Description&where=Workitem.Number='E-01023'
我想我想用downcast;但是,讓我空數據屬性 sel=Name,Children:Story&where=Workitem.Number='E-01023'
<Asset href="/mysandbox/rest-1.v1/Data/Epic/2011" id="Epic:2011">
<Attribute name="Name">Test Item #3</Attribute>
<Relation name="Children:Story" />
<Attribute name="Children:Story.Name" />
<Attribute name="Children:Story.Number" />
</Asset>
我可以用SubsAndDown SEL =名稱,SubsAndDown.Name,SubsAndDown.ID &其中= Workitem.Number = 'E-01023' ,但我得到不同的行爲我想要的每個領域(Id和名字)。
<Asset href="/mysandbox/rest-1.v1/Data/Epic/2011" id="Epic:2011">
<Attribute name="Name">Test Item #3</Attribute>
<Attribute name="SubsAndDown.Name">
<Value>Story for Test Item #3</Value>
<Value>mmm mmm mmm</Value>
</Attribute>
<Relation name="SubsAndDown.ID">
<Asset href="/mysandbox/rest-1.v1/Data/Story/2070" idref="Story:2070" />
<Asset href="/mysandbox/rest-1.v1/Data/Story/2103" idref="Story:2103" />
</Relation>
<Attribute name="SubsAndDown.ID.Name">
<Value>Story for Test Item #3</Value>
<Value>mmm mmm mmm</Value>
</Attribute>
<Attribute name="SubsAndDown.ID.Number">
<Value>S-01093</Value>
<Value>S-01098</Value>
</Attribute>
</Asset>
什麼,我想是每個史詩/故事/任務數據行作爲一個平面列表投入到Excel 例如
E-01023 | Test Item #3 | Epic<br/>
S-01093 | Story for Test Item #3 | Story<br/>
T-1234 | sample task for story 1093 | Task<br/>
T-1235 | sample task for story 1093 | Task<br/>
S-01098 | mmm mmm mmm | Story<br/>
T-2359 | sample task for story mmmm | Task<br/>
T-2360 | additional task for story mmmm | Task<br/>
T-2361 | final task for story mmmm | Task<br/>