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

create parent/children relationship

Hi
say that in my code, I create a bunch of atomic Wotk Items and I want to
group them under the same parent Work Item that I create on that purpose.

I did not see how to set this parent-child relationship. what is the
code to write to do so?

Thanks

Regards

--
cd

0 votes



One answer

Permanent link
say that in my code, I create a bunch of atomic Wotk Items and I want to
group them under the same parent Work Item that I create on that purpose.

I did not see how to set this parent-child relationship. what is the
code to write to do so?

Please take a look at IWorkItemReferences, WorkItemLinkTypes and
WorkItemEndPoints. A rough sketch of the code that you need would be:

private void setParent(WorkItemWorkingCopy wc, IWorkItem parent) {
IEndPointDescriptor referenceType= WorkItemEndPoints.PARENT_WORK_ITEM;
IReference reference= WorkItemLinkTypes.createWorkItemReference(parent);
wc.getReferences().add(referenceType, reference);
}

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

Question asked: Jun 06 '08, 1:12 p.m.

Question was seen: 7,004 times

Last updated: Jun 06 '08, 1:12 p.m.

Confirmation Cancel Confirm