Accessing information on a WorkItem of a linked WorkItem
Hi everyone, I have a custom WorkItem that has 2 links to other custom WorkItems. I want to create an extension that automatically copies the HTMLSummary from the second linked WorkItem to the saved WorkItem.
I read through this: https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/
to get to my linked workitem, but I can't seem to get any information out of it.
I'm currently stuck at this:
if(resolvedRef instanceof IWorkItemHandle){
IWorkItemHandle handle = (IWorkItemHandle)resolvedRef;
}
How do I check if this IWorkItemHandle is my second link?
How do I access it's fields/HTMLSummary?
Thanks
Comments
sam detweiler
Aug 09 '16, 8:46 a.m.Philipp H
Aug 09 '16, 8:02 a.m.