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

Problem in getting Child Work Items.

Hi,

My requirement is to set values to some custom attributes of child work item of a particular work item before it gets saved. I am implementing an IOperationAdvisor.
I am able to get child references, but how to get exactly child work items, so that I can set custom attribute values.

if (data instanceof ISaveParameter) {
IAuditable auditable = ((ISaveParameter) data).getNewState();
if (auditable instanceof IWorkItem) {
IWorkItem parentworkItem= (IWorkItem) auditable;

IWorkItemReferences references = service.resolveWorkItemReferences(parentworkItem, null);

List<IReference> listChildReferences = references.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS);

IReference childReference = listChildReferences.get(0);

0 votes


Be the first one to answer this question!

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: Oct 21 '11, 3:21 a.m.

Question was seen: 3,361 times

Last updated: Oct 21 '11, 3:21 a.m.

Confirmation Cancel Confirm