Work item URL
Hi,
Is there a way to get the URL of an IWorkItem object? The URL that takes user directly to the details of the work item. Many thanks. |
Accepted answer
I found the class com.ibm.team.repository.common.Location in the RTC API, which avoids hard-coding URI fragments. For example:
String workitemURL = Location.namedLocation(workitem, getPublicRepositoryURL()).toAbsoluteUri().toString(); Ralph Schoon selected this answer as the correct answer
|
One other answer
I'm looking for a way to get the URI programmatically for any IWorkItem instance, not through the UI for a specific workitem.
Comments
sam detweiler
commented Mar 31 '14, 8:49 a.m.
ok, well, the model is
server + "/resource/itemName/com.ibm.team.workitem.WorkItem/" + number
you can get server from the repository object.
repository.getRepositoryURI();
most objects have a getOrigin() method that returns the repository object
|
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.
Comments
I'm looking for an answer to this as well.
don't understand.. the URL of the workitem would open the UI if used in a browser.