How to get change set link and its http link using java client API.
Hi All,
I want to get change set link and its http link.
When we open work item in web UI of RTC, if change sets are attached to work item we can see it in link tab.
For example
This is change set link.
Is there any client API which will help me to do the following
1. API to print change set link on console.
2. API to get http link associated to change set link.
|
Accepted answer
I figured how to get change set http link.
following is API to do this.
String uri = Location.itemLocation(IItemHandle item handle, String repoUri).toAbsoluteUri().toString();
It will store http link of change set(if we pass change set handle) into string variable.
Ralph Schoon selected this answer as the correct answer
|
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
Could anybody please tell me?
Is there any api to print change set link
System.out.println(). You likely have to collect the data you want to print yourself and generate appropriate strings.