It's all about the answers!

Ask a question

create releases in project using RTC Plain Client java apis


Arati Kulkarni (132) | asked Feb 15 '22, 3:20 a.m.

 Hello I am trying to create releases in ccm project area and I could create Timelines and iterations as well.

I am using following snippet to create release:
public void createRelease(IProjectArea projectAreaCopy, IIterationHandle newIteration, ITeamRepository teamRepository) throws TeamRepositoryException {
IProcessItemService processItemService = (IProcessItemService) teamRepository
.getClientLibrary(IProcessItemService.class);
IWorkItemClient service = (IWorkItemClient) repository.getClientLibrary(IWorkItemClient.class);
IDeliverable release = service.createDeliverable(projectAreaCopy, "RT_Release_test4", null);
release.setArchived(false);
release.setName("RT_Release_test4");
release.setFiltered(false);
release.setArtifact(newIteration);
release.setIteration(newIteration);
processItemService.save(new IProcessItem[]{projectAreaCopy}, null);
}
projectAreaCopy is working copy of IProjectArea.
    
The code does not throw any exceptions but does not even create release in project.
    
My requirement is to create release and assign it to an iteration through RTC Plain client Java Api.
    
IDE tool - IntelliJ Idea 2018
    

Please guide me through this.
    

Regards,
    
Arati
    

Accepted answer


permanent link
Ralph Schoon (63.2k33646) | answered Feb 15 '22, 4:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 This code creates and saves a deliverable.


Arati Kulkarni selected this answer as the correct answer

Comments
Arati Kulkarni commented Feb 15 '22, 4:46 a.m.

Hello Ralph,


Thank you so much for the help!

Regards,
Arati 

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.