IBM Jazz Team Server:使用OSLC从Changeset获取更改

时间:2014-09-02 12:40:09

标签: java rest changeset jazz oslc

我使用以下查询来检索Changeset。

OSCL查询:

https://ibm.com:9443/ccm/resource/itemOid/com.ibm.team.scm.ChangeSet/_HFxrmiEbEeS7m-qENunxUw?_mediaType=text/xml

获得以下回复:

<scm:ChangeSet itemId="_HFxrmiEbEeS7m-qENunxUw"
properties="">
   <stateId>_W8aNECEbEeS7m-qENunxUw</stateId>
   <immutable>true</immutable>
   <contextId>_Dp6kMdwTEd2jUupDpQV1Rw</contextId>
   <modified>2014-08-11T05:50:11.568Z</modified>
   <mergePredecessor xsi:nil="true" />
   <predecessor>_RaxwgCEbEeS7m-qENunxUw</predecessor>
   <active>false</active>
   <comment>Test</comment>
   <lastUpdatedDate>2014-08-11T05:50:11.225Z</lastUpdatedDate>
   <modifiedBy itemId="_FAv8gA4GEeSsZdvBzERdWQ" />
   <changes>
       <internalId>_HUW6IiEbEeS7m-qENunxUw</internalId>
       <kind>2</kind>
       <before>_nDuHQBhzEeS88s3Rov8pNA</before>
       <after>_HUNJJSEbEeS7m-qENunxUw</after>
       <item itemId="_k5S2oBhzEeSht4FX-gq3Zg" xsi:type="filesystem:FileItemHandle" />
   </changes>
   <component itemId="_RvxoEBhzEeS88s3Rov8pNA" />
   <owner itemId="_FAv8gA4GEeSsZdvBzERdWQ" />
   <xComponentLink xsi:nil="true" />

我想获得更改细节。如果有人共享OSLC,那将会很棒 查询以检索更改详细信息。

1 个答案:

答案 0 :(得分:1)

@ user2530633,尝试以下查询,它不是oslc查询

  

的.com /立方厘米/服务/ com.ibm.team.filesystem.common.internal.rest.IFilesystemRestService2 / changeSetPlus knownTextContentTypePrefixes =文本%2F&安培; knownTextContentTypeStrings =应用%2Fxml&安培; knownTextContentTypeStrings =应用%2Fjavascript&安培; knownTextContentTypeStrings =应用% 2Fecmascript&安培; knownTextContentTypeStrings =应用%2FX-的javascript&安培; changeSetPath = workspaceId%2F_Dh7kMAHIEeSZzL8CZgHcOQ%2FchangeSetId%2F_quVzDljgEeSiBMylK1kVWg&安培; maxChanges = 500"

这里只需替换你的workspaceid和changesetid就可以找到内容的变化