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 (1323897) | 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.

Comments
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.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 (1323897) | 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.


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.