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

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

0 votes



One answer

Permanent link
https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/

0 votes

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

Question asked: Oct 01 '15, 8:14 a.m.

Question was seen: 3,764 times

Last updated: Oct 01 '15, 8:41 a.m.

Confirmation Cancel Confirm