It's all about the answers!

Ask a question

RTC6.0.6.1 how to verify associated workitem status when deliver a changeSet


Gou Peng (216) | asked Dec 31 '19, 3:26 a.m.

 Hi 

I use RTC 6.0.6.1 
My customer need to verify associated workitem  status when they deliver the chageSet.
Can I use  RTC API to implement it ?
thank you!


Comments
Gou Peng commented Jan 02 '20, 7:43 a.m.
Thank you  very much @Ralph Schoon,Your method worked very well
But if  user deliver a baseline , the changeset list is empty ,the baseline list has value .
how can i get the changeset  from the baseline ?
thanks for your reply!!

1
Geoffrey Clemm commented Jan 02 '20, 11:57 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

To get change sets from a baseline, you need to compare that baseline with some other baseline, unless you want every change set that contributes to that baseline, in which case you can get that change set list from the history of that baseline. 


Gou Peng commented Jan 03 '20, 5:39 a.m.
@Geoffrey Clemm

Thank you very much ,for your suggest ,I solved the my problems

IChangeHistorySyncReport syncReport =  scmService.compareBaselines(baselineHandle, baselineHandle2, null, null);
List<IChangeSetHandle> changeSets = syncReport.outgoingChangeSets();

Accepted answer


permanent link
Ralph Schoon (63.2k33646) | answered Dec 31 '19, 5:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Gou Peng selected this answer as the correct answer

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.