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

create releases in project using RTC Plain Client java apis

 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
    

0 votes


Accepted answer

Permanent link

 This code creates and saves a deliverable.


Arati Kulkarni selected this answer as the correct answer

0 votes

Comments

Hello Ralph,


Thank you so much for the help!

Regards,
Arati 

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,944

Question asked: Feb 15 '22, 3:20 a.m.

Question was seen: 714 times

Last updated: Feb 15 '22, 4:46 a.m.

Confirmation Cancel Confirm