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 |
One answer
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
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.