It's all about the answers!

Ask a question

Field kind in ChangeSets retrieved from the REST API


S M (8622023) | asked Dec 09 '11, 9:38 a.m.
I retrieve change sets from the REST API. The JSON results look like this:

{

"changes": [
{
"kind": 2,
"item": {
"uri": "itemOid\/com.ibm.team.filesystem.FileItem\/_2ItWACJKEeGAaaEbbqTtgw",
"itemId": "_2ItWACJKEeGAaaEbbqTtgw",
"com.ibm.team.repository.typeName": "com.ibm.team.filesystem.FileItem"
},
"before": "_Rx7-BCJaEeG25dOp_iUerQ",
"after": "_Ngn9BCJeEeG25dOp_iUerQ",
"internalId": "_NhCzwCJeEeG25dOp_iUerQ"
},
{
"kind": 1,
"item": {
"uri": "itemOid\/com.ibm.team.filesystem.FileItem\/_GWB-kCJeEeGAaaEbbqTtgw",
"itemId": "_GWB-kCJeEeGAaaEbbqTtgw",
"com.ibm.team.repository.typeName": "com.ibm.team.filesystem.FileItem"
},
"before": null,
"after": "_Ngn9CyJeEeG25dOp_iUerQ",
"internalId": "_NhCzwSJeEeG25dOp_iUerQ"
}
],
"comment": "",
"lastUpdatedDate": "2011-12-09T12:06:52.266Z",
"active": false,
"owner": {
"uri": "itemOid\/com.ibm.team.repository.Contributor\/_hhbosPC1EeCsJbI2ZgPDog",
"itemId": "_hhbosPC1EeCsJbI2ZgPDog",
"com.ibm.team.repository.typeName": "com.ibm.team.repository.Contributor"
},
"com.ibm.team.repository.typeName": "com.ibm.team.scm.ChangeSet",
"stateId": "_R7C54SJeEeG25dOp_iUerQ",
"component": {
"uri": "itemOid\/com.ibm.team.scm.Component\/_auolkPC9EeCek69P-ztT9w",
"itemId": "_auolkPC9EeCek69P-ztT9w",
"com.ibm.team.repository.typeName": "com.ibm.team.scm.Component"
},
"contextId": "_Dp6kMdwTEd2jUupDpQV1Rw",
"predecessor": "_NhCzwiJeEeG25dOp_iUerQ",
"modified": "2011-12-09T12:06:52.288Z",
"mergePredecessor": null,
"uri": "itemOid\/com.ibm.team.scm.ChangeSet\/_Nb_UoCJeEeG25dOp_iUerQ",
"itemId": "_Nb_UoCJeEeG25dOp_iUerQ",
"properties": [

],
"modifiedBy": {
"uri": "itemOid\/com.ibm.team.repository.Contributor\/_hhbosPC1EeCsJbI2ZgPDog",
"itemId": "_hhbosPC1EeCsJbI2ZgPDog",
"com.ibm.team.repository.typeName": "com.ibm.team.repository.Contributor"
},
"xComponentLink": null,
"etag": "_R7C54SJeEeG25dOp_iUerQ"
}


I couldnt find a documentation for the field "kind". What do the numbers indicate?

Comments
Muzammil Shareef commented Nov 11 '14, 12:49 a.m.

  Hi S M, 

Could you please post the REST Url to retrieve the changesets here, Im Stuck with retrieving  the changesets using oslc.

Thanks

4 answers



permanent link
Christophe Cornu (47123) | answered Dec 09 '11, 1:28 p.m.
Hi:

This is defined in IChange.java.

0x0 None
0x1 Addition
0x2 Modify
0x4 Rename
0x8 Reparent
0x10 Delete

Note the rest call you are using is probably not API, format may change any time or between releases...

Christophe

permanent link
S M (8622023) | answered Dec 09 '11, 1:30 p.m.
Thanks a lot for the hint! If this is not API, what should I use instead?

permanent link
Martin Gompertz (48611) | answered Dec 20 '11, 2:38 p.m.
Thanks a lot for the hint! If this is not API, what should I use instead?

And a similar question from me:

Where does one go for the committed API regarding Jazz REST interface with respect to changesets?

Sorry if I missed it - I have spent the last few days searching, though!

Thanks

permanent link
Geoffrey Clemm (30.1k33035) | answered Dec 20 '11, 3:23 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Starting in 3.0.1.1, you can find this documentation in the All
Downloads page of the release. E.g.:
https://jazz.net/downloads/rational-team-concert/releases/3.0.1.1/RTC-Client-plainJavaLib-API-javadoc-3.0.1.1.zip

Cheers,
Geoff

On 12/20/2011 2:38 PM, martin1000 wrote:
muellerwrote:
Thanks a lot for the hint! If this is not API, what should I use
instead?
And a similar question from me:

Where does one go for the committed API regarding Jazz REST interface
with respect to changesets?

Sorry if I missed it - I have spent the last few days searching,
though!

Thanks

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.