Retrieving modified files associated with change set in RTC via OSLC
I made a REST GET with the following command:
https://localhost:9444/ccm/oslc/workitems/1052.json
and retrieved a lot of information about the Work Item 1052.
among the others:
"rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet": [
{
"rdf:resource": "https://localhost:9444/ccm/resource/itemOid/com.ibm.team.scm.ChangeSet/_AtuJ4i9TEeOcBrLMAjWRxA",
"oslc_cm:label": "Changes in TC - stsdir - Useful comment - Brown Peter - Oct 7, 2013 3:18 PM"
},
],
Now that I have the id of the Change set (_AtuJ4i9TEeOcBrLMAjWRxA) I would like to get all the information related to it, especially the files (name and content of the modified files associated to the ChangeSet)
I don't know which is the get command OSLC (json or xml) to retrieve it.
https://localhost:9444/ccm/oslc/workitems/1052.json
and retrieved a lot of information about the Work Item 1052.
among the others:
"rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet": [
{
"rdf:resource": "https://localhost:9444/ccm/resource/itemOid/com.ibm.team.scm.ChangeSet/_AtuJ4i9TEeOcBrLMAjWRxA",
"oslc_cm:label": "Changes in TC - stsdir - Useful comment - Brown Peter - Oct 7, 2013 3:18 PM"
},
],
Now that I have the id of the Change set (_AtuJ4i9TEeOcBrLMAjWRxA) I would like to get all the information related to it, especially the files (name and content of the modified files associated to the ChangeSet)
I don't know which is the get command OSLC (json or xml) to retrieve it.
One answer
You have probably already figured this out, but just in case...
I believe you should be able to get the changeset information with something like the line line below.
Notice that the part before the ? is what was returned by your workitem query.
I have not attempted to use the shorthand link on changesets like the one you used for your workitem.