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

How to set the filiation of two workitems by programming?

Assume there are two workitems:One workitem ID is 100,the other ID is 102.

I want set the one(ID:100) workitem is another's(ID:102) parent.

How to get it by programming?

Thanks a lot.

0 votes



One answer

Permanent link
Hi,
you have to use the ILinkServiceLibrary.createLink methods, referring the link type id (which is "com.ibm.team.workitem.linktype.parentworkitem"), and the two workitem IReference (obtained by IReferenceFactory.createReferenceToItem method, whit IReferenceFactory obtained by ILinkServiceLibrary.referenceFactory() ).

After you have create the link you have to save it using ILinkServiceLibrary.saveLink method.

Best regards,
Michele.

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

Question asked: Jun 07 '10, 11:04 p.m.

Question was seen: 5,093 times

Last updated: Jun 07 '10, 11:04 p.m.

Confirmation Cancel Confirm