It's all about the answers!

Ask a question

How to get change set link and its http link using java client API.

vikrant kamble (132358) | asked Nov 14 '15, 1:20 a.m.
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.

vikrant kamble commented Nov 16 '15, 12:14 a.m.

Could anybody please tell me?

vikrant kamble commented Nov 16 '15, 4:29 a.m.

Ralph Schoon commented Nov 16 '15, 4:53 a.m.

System.out.println(). You likely have to collect the data you want to print yourself and generate appropriate strings.

Accepted answer

permanent link
vikrant kamble (132358) | answered Nov 16 '15, 4:15 a.m.
 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

Register or to post your answer.