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

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

https://jazz.net/forum/questions/48070/how-to-read-description-attribute-of-a-project-area?sort=votes&page=2

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);

0 votes



One answer

Permanent link
Please check Snippet3 coming with the plain java client libraries. The code looks like this and seems to act directly on the IDescription:

        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);





0 votes

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.

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: Apr 28 '16, 5:24 a.m.

Question was seen: 3,242 times

Last updated: Apr 29 '16, 4:26 a.m.

Confirmation Cancel Confirm