It's all about the answers!

Ask a question

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


Gidi Gal (962056) | asked Mar 12 '14, 2:38 p.m.
edited Mar 18 '14, 6:35 a.m.
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



One answer



permanent link
Tim Mok (6.6k38) | answered Jul 08 '14, 1:49 p.m.
JAZZ DEVELOPER
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.

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.