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

Retrieving IWorkItem custom attribute value

I'm having some trouble retrieving the value of a custom attribute from an IWorkItem. Is there anything special I should be doing other than calling getValue:

IWorkItem.getValue(IAttribute);


I can set the value properly and it shows up in the UI but in the next pass when I try to retrieve it I get a null value.

0 votes



One answer

Permanent link
I'm having some trouble retrieving the value of a custom attribute
from an IWorkItem. Is there anything special I should be doing other
than calling getValue:

IWorkItem.getValue(IAttribute);

I can set the value properly and it shows up in the UI but in the next
pass when I try to retrieve it I get a null value.


That's the right way of retrieving the custom attribute value.

Two things you might want to check:

a) Make sure that both the IWorkItem and the IAttribute have the same
project area origin.

b) Make sure that the item profile used to retrieve the work item is
large enough. To access the custom attributes, the profile needs all
properties of IWorkItem.CUSTOM_ATTRIBUTE_PROPERTIES


HTH,
Patrick
Jazz Work Item Team

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

Question asked: Jun 19 '08, 11:10 a.m.

Question was seen: 6,538 times

Last updated: Jun 19 '08, 11:10 a.m.

Confirmation Cancel Confirm