It's all about the answers!

Ask a question

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


swapna das (3324571) | 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() );
        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



permanent link
Ralph Schoon (63.1k33645) | 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


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.