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

How to create child links using java api?

Hi,
I am trying to create a parent and child links using java api.
I can able to create a parent link using the linktype "WorkItemLinkTypes.PARENT_WORK_ITEM" programmatically.
The same way how can I create a child link of a workitem.
Please help me out on this.
Thanks.

0 votes

Comments

I think I just use PARENT_WORK_ITEM and always create the link from the child up to the parent instead of from the Parent, trying to add the children.

Hi Susan,
Thanks for the reply. Even I am using the same way.
I just want to know if there is any other way to create a direct child link for the workitem.
Because for a workitem if we try to fetch the links as type "PARENT_WORK_ITEM" it will list all the parent link and child links as well.
I want to filter it out. So thought of knowing is there any API to filter this.

There is only this API. You can create the links using that constant or using the link manager. I don't understand the rest of your question. If you search for the children in the API, you get all the children. If you search for the parent, you can only get one. https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ shows how to filter for a specific link type.

Hi Ralph,
Thanks for your answer.


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

Question asked: May 26 '15, 4:07 a.m.

Question was seen: 4,125 times

Last updated: May 28 '15, 10:25 a.m.

Confirmation Cancel Confirm