It's all about the answers!

Ask a question

writing to string attribute of a work item


Baris Erdemir (1812819) | asked Jan 04 '11, 12:09 p.m.
Hi,
I want to write an information (system date) in a custom attribute of a work item. Can you provide a java API example for this?
The attribute I will use is string attribute.
Thank you,

One answer



permanent link
Patrick Streule (4.9k21) | answered Jan 06 '11, 1:38 p.m.
JAZZ DEVELOPER
Hi,
I want to write an information (system date) in a custom attribute of a work item. Can you provide a java API example for this?
The attribute I will use is string attribute.
Thank you,


The general pattern for setting attributes is:

workItem.setValue(IAttribute attribute, Object value)

where the attribute is retrieved using

IAttribute attribute= workItemClient.findAttribute(workItem.getProjectArea(), "your attribute id", monitor);

Your answer


Register or 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.