Welcome to the Jazz Community Forum
Getting URL out of WorkItemHandles, Using Synegy/RTC Bridge Plugin

2 answers

Hi Ken,
I am not sure if you can get it from the handle. I was able to create a location the way below and used the toAbsoluteURI to link the item using a CLM link.
I needed an IItem for it. Location has other methods, so.......
I am not sure if you can get it from the handle. I was able to create a location the way below and used the toAbsoluteURI to link the item using a CLM link.
Location location = Location.itemLocation(targetWorkItem,this.getPublicRepositoryURL()); location.toAbsoluteUri()
I needed an IItem for it. Location has other methods, so.......

Hi Ralph,
I have added the below piece of code (which pops up a window through which user can either select an existing work item or create a new work item & the details are retrieved in the 'workItemHandles' array. How to retrieve the details of the work item (specially the URI)?
IWorkItemHandle[] workItemHandles =
WorkItemSelectionDialog.getWorkItems(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
Thanks
Guru
I have added the below piece of code (which pops up a window through which user can either select an existing work item or create a new work item & the details are retrieved in the 'workItemHandles' array. How to retrieve the details of the work item (specially the URI)?
IWorkItemHandle[] workItemHandles =
WorkItemSelectionDialog.getWorkItems(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
Thanks
Guru
Comments

Please start with
http://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
http://rsjazz.wordpress.com/2013/03/14/what-apis-are-available-for-rtc-and-what-can-you-extend/
http://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/
The last one shows how to resolve Items from handles.