How to update description content in Project area by Java ?
I want to update the description content in project area . can anyone help on this ?
Note : I already refer the below link . but no luck
My Code like below
IProcessItemService service = (IProcessItemService) teamRepository.getClientLibrary(IProcessItemService.class);
IProjectArea mutableProjectAreaCopy = (IProjectArea) service.getMutableCopy(projectArea);
IDescription description = mutableProjectAreaCopy.getDescription();
// Here I want to update description field.
service.save(new IProcessItem[] {mutableProjectAreaCopy}, nPMonitor);
One answer
IProjectArea area = service.createProjectArea();
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);
// Create team
ITeamArea teamArea = service.createTeamArea();
teamArea.setName(projectName);
Comments
Thanks Ralph Schoon for response . still I did not get answer . seems above example also updating the summary not description . here what is mean Snippet3 ? can you paste the code scenario ?
Download the Plain Java Client Libraries from the all downloads tab of your RTC version unzip it and look into the folder snippets to find the example code shipped with them. See https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ and https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ for more details.