Create Project Area / Team Area in RTC using RTC JAVA API
![]()
Hi Team,
I want to create project areas/ team areas in RTC pragmatically. In our RTC environment we have created customized process templates . I want to create Project Areas using our own defined process templates .
I am successfully creating the project areas using OOTB process templates but it's throwing error while I am trying to create project areas using our customized process templates.
Please find the below code snippet which I am using :
IProcessDefinition[] definitions = service.deployPredefinedProcessDefinitions(new String[] { SCRUM_PROCESS }, new NullProgressMonitor());
if (definitions.length == 0) {
throw new TeamRepositoryException("Process template " + SCRUM_PROCESS + " does not exist.");
}
IProjectArea area = service.createProjectArea();
//Create Project Area
area.setName(projectName + System.currentTimeMillis() );
area.setProcessDefinition(definitions[0]);
IDescription description = area.getDescription();
description.setSummary(projectName + " example project based on the Scrum project template");
area = (IProjectArea) service.save(area, monitor);
Please help me.
Thanks,
Swapna Das
|
One answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Oct 01 '15, 8:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/
|
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.