Double linking in java extensions
Hi everyone,
So I know that double linking is impossible via queries (as I asked here)
But is it possible in a java server extension?
For example I get linked/referenced workitems from my SaveParameter like this:
saveParameter.getNewReferences();
But can I do the same from an already referenced workitem like this?
IWorkItemReferences ref = saveParameter.getNewReferences();
//... get specific workitem and resolve it
IWorkItem item;
//is something like this possible?
item.getNewReferences();
Thanks
Accepted answer
The save parameter in an advisor or participant only gives the information about the item that causes the operation. However, it is possible to access the references of a work item. These posts explain the API: https://rsjazz.wordpress.com/?s=link+api and https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/