URL for selecting a defect from project area through client Java API
I would like to get the URL for selecting a defect from project area.
How do I do it using client Java API ?
The requested URL can be found through web API by querying https://<server_name>:<port>/ccm/rootervices, then querying the value of oslc_cm:cmServiceProviders, which yields a catalog file. Querying the catalog file for the value of oslc_disc:services for a specific project area will yield services.xml file which contains the requested URL.
The scenario I'm trying to solve:
An external application is communicating with RTC client. RTC client will supply this application a list of managed project areas and their "select defect" URLs. This application should display the user the managed project areas in the client and once the user selects one of them it will open the appropriate URL, which will allow the user to select a defect.
I'll be grateful for your help on this issue.
One answer
Hi Gidi,
the RTC plain Java Client Libraries provide supported means to query work items. This involves using expressions and queries. This is done using a Java API that hides the HTTP nature of the underlying REST APIs. You can use it against any RTC repository, provided you are logged in. You can use multiple instances of ITeamRepository each for one repository.
See:
For many of the questions you ask, I have examples on my blog. See some of them above. You do not have to use any URIs for this.
If you want to work against a pure REST interface in the RTC Client API, https://jazz.net/wiki/bin/view/Deployment/CreateCustomScenarios#Using_the_Plain_Java_Client_Libr shows how to access the internal REST interface. You will have to perform all the marshalling and unmarshalling as well.
How to discover the required URIs for this is hard to answer. I would search for the OSLC API, however that has become a mess when everything was migrated to http://www.oasis-oslc.org/.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 07 '19, 7:22 a.m.Gidi, I don't get what you are asking for.
Gidi Gal
Jun 10 '19, 12:11 p.m.