How to link a workitem with another workitem in RTC.
One answer
As far as I can tell, you can not do that. What you can do is to have a follow up action that creates a work item and creates and saves a work item, creates the link and then saves the link.
See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ for getting started. There are various examples that you can follow.
See https://jazz.net/forum/questions/77260/how-to-create-new-work-item-from-java-server-side-plugin for creating work items in the server API.
See https://rsjazz.wordpress.com/?s=link+api for examples how to create and follow links.
See https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
for participants that do a save operation.
See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ for getting started. There are various examples that you can follow.
See https://jazz.net/forum/questions/77260/how-to-create-new-work-item-from-java-server-side-plugin for creating work items in the server API.
See https://rsjazz.wordpress.com/?s=link+api for examples how to create and follow links.
See https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/
for participants that do a save operation.