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

how to get worktitem attribute value which customized by me

I extended workitem and add a field ,how to get the value with JAVA api ,maybe like .get(xxx).

0 votes



One answer

Permanent link
I extended workitem and add a field ,how to get the value with JAVA api ,maybe like .get(*).


Hi,

Try this:

IWorkItemClient workItemClient = (IWorkItemClient) teamRepository
.getClientLibrary(IWorkItemClient.class);

URI uri = URI.create(prop.getProjectAreaName().trim().replaceAll(" ", "%20"));
IProjectArea projectArea = (IProjectArea) processClient
.findProcessArea(uri, null, null);

IAttribute attEnv = workItemClient.findAttribute(projectArea,
{your workitem attribute id}, null);


Cheers!!

Jorge

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
× 10,952

Question asked: Oct 18 '11, 12:40 p.m.

Question was seen: 4,116 times

Last updated: Oct 18 '11, 12:40 p.m.

Confirmation Cancel Confirm