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

How to read description attribute of a project area?

Hi,
I want to read 2 string parameters from a project area.
Is it possible to add parameters to project area? If not,
How can I read from description field of a project area?
Thank you

0 votes



11 answers

Permanent link
To access to the description field of a project area, instead getSummary() API, did you try getDetails() API provided by the IDescription interface?

Hi Philippe,
I think your answer is about 1st part of my question. I tried it now. But that method is returning an IContent and I do not know how to get Description attribute of a project area from there.
I need the value as a string.

Plus I need the same thing for client side.
thanks,

Hi bariserdemir,

Hope following code snippets help-

ServerSide:


IContent content = projectArea.getDescription().getDetails();
ByteArrayOutputStream out = new ByteArrayOutputStream();
IContentService cs = getService(IContentService.class);//get IContentService
cs.retrieveContent(content, out);
String description = new String(out.toByteArray(),content.getCharacterEncoding());



code snippet of ClientSide:


ByteArrayOutputStream stream= new ByteArrayOutputStream();
//fTeamRepository: client side team repository
//content: project area description details
//monitor: ProgressMonitor for retrieveConent
fTeamRepository.contentManager().retrieveContent(content, stream, monitor);

0 votes

1–15 items
page 2of 1 pagesof 2 pages

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
× 11,074

Question asked: Dec 23 '10, 8:02 a.m.

Question was seen: 15,414 times

Last updated: Dec 23 '10, 8:02 a.m.

Confirmation Cancel Confirm