Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Field kind in ChangeSets retrieved from the REST API

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?

0 votes

Comments

  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
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

0 votes


Permanent link
Thanks a lot for the hint! If this is not API, what should I use instead?

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 09 '11, 9:38 a.m.

Question was seen: 6,409 times

Last updated: Nov 11 '14, 12:49 a.m.

Confirmation Cancel Confirm