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

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

0 votes



2 answers

Permanent link
Hi Paulino,

maybe the code here helps? http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/

0 votes


Permanent link
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

0 votes

Comments

I am not sure what you try, especially what the item is, but the code in the blog post actually works and provides you with work items loaded with full profile.

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
× 369

Question asked: Jul 30 '12, 8:30 a.m.

Question was seen: 5,754 times

Last updated: Jul 31 '12, 11:57 a.m.

Confirmation Cancel Confirm