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

RTC API: compare two stateId elements (IITemHandle.getStateId())

Hello to the forum members,

I have two stateId elements related to the same item. I have the item as well.
I'd like to compare and find out which one is more recent.
I looked in the forum and found this post:

https://jazz.net/forum/questions/85248/using-iversionable-user-properties-with-the-scm-java-api-fetching-previous-versions?redirect=%2Fforum%2Fquestions%2F85248%2Fusing-iversionable-user-properties-with-the-scm-java-api-fetching-previous-versions

It introduces IChangeHistory.getHistoryFor method. I guess I can write some code based on this API in order to compare the two states.
I was wondering if there is an API for such comparison.

Many thanks for your help,
Gidi



0 votes



One answer

Permanent link
You can look at the modified date of each item. With the state id, you can look up the item state and check the modified date. However, this is the date that the item state was modified. It does not imply one is more recent in a particular change history.

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
× 10,934
× 1,202
× 457

Question asked: Mar 12 '14, 2:38 p.m.

Question was seen: 5,880 times

Last updated: Jul 08 '14, 1:49 p.m.

Confirmation Cancel Confirm