The Git query service

With the Git query service, you can obtain a list of Rational Team Concert work items associated with a Git commit id. You perform a Git query by invoking an HTTP GET call.

Query formats

Use this format for Gitweb projects:

https://<your.server>:9443/ccm/gitAdapter/commit/<registered_git_server_id>/<registered_git_project_with_encoding>/<SHA1> 
Use this format for Gerrit projects:
https://<your.server>:9443/gitAdapter/gerrit-change/<registered_git_server_id>/<registered_git_project_with_encoding>/<change_id>   
For example, your URL might look like the following:
https://clm.jkebanking.net:9443/gitAdapter/commit/0/0_1/first.git/db5b2db61f6b41279fcd00d4fee94abd12413fd9
The easiest way to determine your URL is to copy the link location of a Git commit or Gerrit change link that has been created on a Rational Team Concert work item. To do this, remove the /identifier at the end of the URL. For example, https://clm.jkebanking.net:9443/gitAdapter/gerrit-change/2/7_0_2/gerrit_first/I0d0ac7f2ded88283d075d5377501baf1b38995be/62 becomes https://clm.jkebanking.net:9443/gitAdapter/gerrit-change/2/7_0_2/gerrit_first/I0d0ac7f2ded88283d075d5377501baf1b38995be

Parameters

registered_git_server_id
Identifies the registered Git server to the Git adapter. It can be found in the ID column of the Git Server Connections table on the Git Servers adapter administration page.
registered_git_project_with_encoding
This segment is the name of the registered Git project, including the preceding number_number segment used before the name to handle forward slashes in Git project names such as 0_1/first.git.
SHA1
The Git hash that identifies the commit.
change_id
The Gerrit change ID.

Feedback