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

Link Parent WorkItem to Child Workitem using Parent WorkItem ID

Hello,

I have a parent workitem id. I am trying to create child workitem and also link parent workitem using plain java client.
I know how to create a workitem but i am not getting how to link parent workitem programmatically


2 votes


Accepted answer

Permanent link
Hi,

please check out the articles in Ralph Schoons blog: https://rsjazz.wordpress.com/2013/11/06/creating-clm-links-with-back-link/

They have all the code examples you need to achieve this.

If this answer is helpful please mark it accepted.

gg,
Arne
Sudipto Sarkar selected this answer as the correct answer

0 votes

Comments

Hello,

 Thanks, it was useful. But I am stuck at pne point. How to get the IWorkitem object using the id of the workitem.
My workitem id is : 45544. How to get its corresposnding IWorkitem obj.

Hi,

to find work items by id or other parameter simply use work item query programmatically. Links (to e.g. Ralph Schoon's blog) and code snippets amply shared like in this post: https://jazz.net/forum/questions/72975/getting-work-items-through-plain-java-api

Probably best to write a utility method such as getWorkItemById(String myId) that uses the query concept.

Please post a new question if you need anything in particular.

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
× 7,495
× 1,220

Question asked: Aug 13 '15, 5:11 a.m.

Question was seen: 3,010 times

Last updated: Aug 17 '15, 11:06 a.m.

Confirmation Cancel Confirm