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

How to retrieve customized attributes from workitem by java

Because our team's busness logic, we added some customized attributes in RTC defect. Besides owner, priority, severity, created date, modified date, we add ODC_activity, ODC_qualifier, ODC_impact as new attributes for defect in RTC.

The question is, how can we retrieve them by Plain Java API. There is no getODCAttributes() method in API.

Thanks a lot! It's very urgent.

0 votes



One answer

Permanent link
On 11/17/10 3:53 PM, liyuncdl wrote:
Because our team's busness logic, we added some customized attributes
in RTC defect. Besides owner, priority, severity, created date,
modified date, we add ODC_activity, ODC_qualifier, ODC_impact as new
attributes for defect in RTC.

The question is, how can we retrieve them by Plain Java API. There is
no getODCAttributes() method in API.

Thanks a lot! It's very urgent.


You can use:

IAttribute attribute= workItemClient.findAttribute(projectArea, "your
custom attribute id", monitor);

Object value= workItem.getValue(attribute);

--
Regards,
Patrick
RTC Work Item Component Lead

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,943

Question asked: Nov 17 '10, 9:46 a.m.

Question was seen: 4,814 times

Last updated: Nov 17 '10, 9:46 a.m.

Confirmation Cancel Confirm