-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
None
-
Affects Version/s: 8.20.13, 9.4.10
-
Component/s: DVCS Connector
-
8.2
-
6
-
Severity 2 - Major
-
0
Issue Summary
Since GitLab works with Groups and Projects in place of the "traditional" Organizations and Repositories, there's a salient feature which allows you to create Shared Projects between Groups.
In such Shared Projects, every commit/branch is parsed as unique commits/branches and thus Jira's Dev panel shows double the number of the actual commits/branches.
This is reproducible on Data Center: yes
Steps to Reproduce
- Create two Groups in GitLab: "Group A" and "Group B"
- Crate a Project "Project A" under one group "Group A" and share it with the "Group B"
- Create a branch under "Project A" called Issue-9
Expected Results
Jira understands that Issue-9 is a single branch and shows "1 branch" in the development panel.
Actual Results
In the Jira Development panel, the same branch appears twice as a duplicate:
SELECT branch."ID" AS "branchId", branch."NAME" AS "branchName", repo."ID" AS "repoId", repo."REPOSITORY_URI" , repo."ORGANIZATION_ID", om."NAME" as "orgName" FROM "AO_E8B6CC_ISSUE_TO_BRANCH" issBr JOIN "AO_E8B6CC_BRANCH" branch ON issBr."BRANCH_ID" = branch."ID" JOIN "AO_E8B6CC_REPOSITORY_MAPPING" repo ON branch."REPOSITORY_ID" = repo."ID" JOIN "AO_E8B6CC_ORGANIZATION_MAPPING" om ON om."ID" = repo."ORGANIZATION_ID" WHERE issBr."ISSUE_KEY" LIKE '%SCRUM-9%' AND repo."LINKED" = '1' AND repo."DELETED" = '0' GROUP BY branch."ID", branch."NAME", repo."ID", om."NAME";
|branchId|branchName|repoId|REPOSITORY_URI |ORGANIZATION_ID|orgName| |--------|----------|------|---------------------------------------------------------------|---------------|----| |31 |SCRUM-9 |10 |https://linux-38953.prod.atl-cd.net/gitlab/xoxo/shared-proj_old|4 |xoxo| |50 |SCRUM-9 |11 |https://linux-38953.prod.atl-cd.net/gitlab/xoxo/shared-proj_old|5 |yoyo|
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- links to