Find CHILD_WORK_ITEMS in a Follow up (extends AbstractService implements IOperationParticipant)
Hello,
I need find CHILD_WORK_ITEMS ...(only by AbstractService )
I am trying this code:
IWorkItemReferences ref= workItemServer.resolveWorkItemReferences((IWorkItemHandle)workItem, monitor);
if(ref.hasReferences(WorkItemEndPoints.CHILD_WORK_ITEMS)){
List<IReference> listChildReferences = ref.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS); //Always listChildReferences.size()=0..???
//no works
for (IReference reference: listChildReferences){
//get wi child id
//find wi by id
}
}
===========
List<IEndPointDescriptor> auxList= ref.getTypes(); //ONLY i can extract the display names....I need the wi child objects...
thanks
I need find CHILD_WORK_ITEMS ...(only by AbstractService )
I am trying this code:
IWorkItemReferences ref= workItemServer.resolveWorkItemReferences((IWorkItemHandle)workItem, monitor);
if(ref.hasReferences(WorkItemEndPoints.CHILD_WORK_ITEMS)){
List<IReference> listChildReferences = ref.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS); //Always listChildReferences.size()=0..???
//no works
for (IReference reference: listChildReferences){
//get wi child id
//find wi by id
}
}
===========
List<IEndPointDescriptor> auxList= ref.getTypes(); //ONLY i can extract the display names....I need the wi child objects...
thanks
2 answers
Ralph,
thanks for your time!!
I think my code is the same that your link:
// get all the references
IWorkItemReferences references = workItemServer.resolveWorkItemReferences(parentHandle, monitor);
// narrow down to the children
List listChildReferences = references.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS);
my dude right now is:
IWorkItemHandle itemhandle=(IWorkItemHandle)item.getItemHandle();
is this correct?
thanks
thanks for your time!!
I think my code is the same that your link:
// get all the references
IWorkItemReferences references = workItemServer.resolveWorkItemReferences(parentHandle, monitor);
// narrow down to the children
List listChildReferences = references.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS);
my dude right now is:
IWorkItemHandle itemhandle=(IWorkItemHandle)item.getItemHandle();
is this correct?
thanks