[RTC] Creation of RTC Release Programmatically
![]() Hi,
Is there a possibility to create a release and assign the iteration to the release via Java API ?
If not, what could be other possibility to achieve this solution
Regards,
Chandan
|
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Feb 11 '22, 2:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Feb 11 '22, 2:32 a.m. A release in the context of RTC is an com.ibm.team.workitem.common.model.IDeliverable and can be created using com.ibm.team.workitem.common.IWorkItemCommon.createDeliverable(IProjectAreaHandle, String, IProgressMonitor). The interface IDeliverable has, amongst others, a method to set an iteration. Ralph Schoon selected this answer as the correct answer
|
One other answer
![]() IDeliverable release = (IDeliverable) IDeliverable.ITEM_TYPE.createItem();
release.setIteration((IIterationHandle) newIteration.getItemHandle());
fWorkItemCommon = (IWorkItemCommon) fTeamRepository.getClientLibrary(IWorkItemCommon.class);
fWorkItemClient.saveDeliverable(release, null);
This code is getting failed.
Comments ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Several issues:
Sorry for my behaviour for not providing error logs. I will try to analyse bit more.
Try using the proposed method to create the deliverable. |
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.