Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Getting URL out of WorkItemHandles, Using Synegy/RTC Bridge Plugin

We are trying to get the Work Item URL inside the Synergy/RTC bridge eclipse plugin for 4.0.0.1.  I know it's in there ;-)  In the WorkItemHandles object/attribute, but I can't figure out how to parse it or get the value out of it??  Any help?

thanks
Ken

0 votes



2 answers

Permanent link
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.
Location location = Location.itemLocation(targetWorkItem,this.getPublicRepositoryURL());
location.toAbsoluteUri()

I needed an IItem for it. Location has other methods, so.......

0 votes

Comments

On the other hand, you can get the UUID from the handle, maybe you can construct the URL from the repository URL and the UUID? I know there are different valid ways to represent the work item URL.


Permanent link
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

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,985

Question asked: Mar 20 '13, 9:26 a.m.

Question was seen: 5,151 times

Last updated: Mar 21 '13, 8:38 a.m.

Confirmation Cancel Confirm