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

Determine time changeset delivered to a stream via RTC API

I understand that a stream is tagged with baselines and I can determine whether a changeset was added before / after / in between those baselines.  I can get a rough idea when the changeset was added.

However, is there a direct method to track when a changeset is delivered to a stream through RTC Java interface?  It will enable some traceability that is not provided with the above method.

The API from IChangeSet seems to indicate that if a changeset was created as a part of a merge, a source changeset is defined.  This does not apply though to a changeset that does not require a merge - then it is blank.  I am running 5.0.2.

Any help would be appreciated.
Mike

1 vote



2 answers

Permanent link

Anyone any thoughts how to retrieve the timestamp indicating when a changeset was delivered to a stream?


Regards,
Bernd.

0 votes


Permanent link

This works:


IChangeHistory hist = getWsConnection().changeHistory(this.getComponentHandle());
List changes = hist.recent(null);
for (int i = 0; i < changes.size(); i++) {
ClientChangeSetEntry entry = (ClientChangeSetEntry) changes.get(i);
if (entry.changeSet().getItemId().equals(this.getChangeSet().getItemHandle().getItemId())) {
deliveryDate = entry.creationDate().toLocaleString();
break;
}
}


...but if anyone knows a better way, please let me know.

Regards,
Bernd.

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,938
× 1,202

Question asked: Jul 04 '16, 7:18 p.m.

Question was seen: 4,611 times

Last updated: Jan 23 '20, 8:20 a.m.

Confirmation Cancel Confirm