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

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. 
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

0 votes

Comments

the design of the system uses a small representation of the objects as the persistent data. its a 'handle' to the real object.  the handle does NOT contain any useful data.
this reduces memory consumption for what is expected to be large numbers of objects.

you must ask the system to populate (resolve) the object with the data elements you need.

the resolve 'profiles' (small, medium, large, default) select the data elements you need.   (you can create your own profile on the fly to get only specific data elements)

As an example, in one of my applications, I only need the email address of the user (IContributor), so that is all I ask the system to get me.. no point retrieving the other data if its not going to be used.

 Ok, thanks for explaining!


Accepted answer

Permanent link
Please see https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ . You have to resolve the handle.
Philipp H selected this answer as the correct answer

0 votes

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
× 10,927
× 369

Question asked: Aug 09 '16, 2:52 a.m.

Question was seen: 2,152 times

Last updated: Aug 09 '16, 8:46 a.m.

Confirmation Cancel Confirm