How to Fix Incorrect Commit URLs in Jira DVCS Integration
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Viewing commits for an organization displays an unexpected URL.
Solution
Diagnosis
Looking at the URL for any commit, an unexpected URL is displayed.
You can also check the following two tables in the database to find the organization ID and the URL's associated with the repositories:
select * from "AO_E8B6CC_ORGANIZATION_MAPPING";
select * from "AO_E8B6CC_REPOSITORY_MAPPING";
Results from 'AO_E8B6CC_ORGANIZATION_MAPPING' showing the organization ID as 27:
DVCS_TYPE | HOST_URL | ID | NAME |
githube | https://github.chris.com | 27 | Chris-Lab |
Results from the AO_E8B6CC_REPOSITORY_MAPPING table showing the Repository URL and the Organization_ID:
ACTIVITY_LAST_SYNC | ID | NAME | ORGANIZATION_ID | SLUG | SMARTCOMMITS_ENABLED | UPDATE_LINK_AUTHORISED | REMOTE_ID | REPOSITORY_URL |
| 8038 | Chris-Commit | 27 | Chris Commit | t | t |
| https://github.chris.com/chris-us-test/chris |
Note the URL is 'https://github.chris.com/chris-us-test/chris' when it should be https://github.chris.com/Chris-Lab/Chris-Commit
Next Step(s)
Delete the Organization that has the wrong URL and re-add
This will clear the data in the table and repopulate the data
Information on managing DVCS accounts can be found in - Integrating with development tools using DVCS
Was this helpful?