It's all about the answers!

Ask a question

How to get repository/server URL using RTC server side API?


Andrew Ciaz (59160) | asked Dec 06 '19, 1:55 a.m.

 Hi all,

I want to fetch server/repository URL using server side Java API, I tried below code but it not works:

repositoryItemService = getService(IRepositoryItemService.class);
IRepositoryRoot root = repositoryItemService.getRepositoryRoot();
System.out.println("Repository URL: "+root.getName());


Accepted answer


permanent link
Ralph Schoon (63.1k33645) | answered Dec 06 '19, 10:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

com.ibm.team.repository.service.AbstractService.getPublicRepositoryURL()

Andrew Ciaz selected this answer as the correct answer

Comments
Andrew Ciaz commented Dec 07 '19, 4:24 a.m.

@Ralph Schoon thanks for your 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.