It's all about the answers!

Ask a question

Double linking in java extensions


Philipp H (5311) | asked Aug 22 '16, 5:22 a.m.
 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


permanent link
Ralph Schoon (56.0k23642) | answered Aug 22 '16, 7:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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/
Philipp H selected this answer as the correct answer

Your answer


Register or to post your answer.