How to get the Workitem URL from IWorkItem

Posts: 8
Joined: Thu Jun 24, 2010 7:46 am

How to get the Workitem URL from IWorkItem

Postby bt_roke » Tue Feb 08, 2011 12:52 pm


Does anyone know how I can get the workitem URL from a IWorkItem?

What I need is something such as :

which can be used in a browser to show the Workitem.

SubterraURI stUri = wi.getURI();

was not too helpful, or I did not find it in the API.

Is there a direct way to do it through Polarion API, or do I have to patch it together from <servername>, <projectname>, <workitem-id> with the risk, that if the format changes I will have to changes my servlet plugin?

Kind regards


Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart

Re: How to get the Workitem URL from IWorkItem

Postby NickEntin » Wed Feb 09, 2011 1:52 pm

Dear Roman,

I'm afraid that it's not possible in API way.
You should be able to get server url through system properties, project and workitems IDs through API and compose the URL yourself, as you proposed.
I can ensure you that there will be no dramatic (if any) changes of the URL construction in the future, as it might break already existing links, notifications, etc.

Best regards,

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 7 guests