IReference to IWorkItem
Hi,
I have a reference of type IReference, from which I need to get the workitem (IWorkItem). Please provide you suggestion on this. Thank you Abhishek |
3 answers
You have to use IItemReference class
IReference source = ... where items is an ItemProvider instance. |
Hi Abhishek,
yes, I was wrong with "source". It was "target". For ItemProvider it depends on which side you are. On Client side you can use ProviderFactory provider = (ProviderFactory)repo.getClientLibrary(ProviderFactory.class); ItemProvider items = provider.getItemProvider(); On Server side use ProviderFactory provider = getService(ProviderFactory.class) ItemProvider items = provider.getItemProvider(); |
Hi Michele,
Thanks for the quick reply. I have a couple of questions. 1) Is 'target' same as the source IReference ? 2) How can we get ItemProvider instance? I appreciate your help on this. You have to use IItemReference class |
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.