It's all about the answers!

Ask a question

How to retrieve customized attributes from workitem by java


Yun Li (1154) | asked Nov 17 '10, 9:46 a.m.
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.

One answer



permanent link
Patrick Streule (4.9k21) | answered Nov 17 '10, 10:53 a.m.
JAZZ DEVELOPER
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

Your answer


Register or to post your answer.