It's all about the answers!

Ask a question

Create Project Area / Team Area in RTC using RTC JAVA API

swapna das (3324071) | asked Oct 01 '15, 8:14 a.m.
 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() );
        IDescription description = area.getDescription();
        description.setSummary(projectName + " example project based on the Scrum project template");
        area = (IProjectArea), monitor);

Please help me.

Swapna Das

One answer

permanent link
Ralph Schoon (61.6k33643) | answered Oct 01 '15, 8:41 a.m.

Your answer

Register or to post your answer.