Only projects in top-level namespace are available for adding via the toolchain feature within Jira Cloud
Summary
When attempting to add a code repository via the toolchain feature within Jira Cloud only projects in the top level namespace in GitLab are available for selection.
Projects within subgroups are not listed.
Steps to reproduce
Gitlab:
- Create a top level namespace
- Create a project within the top level namespace
- Create a subgroup within the top level namespace
- Create a project within the subgroup
Jira
- Create a new project
- Integrate gitlab with Jira
- Enable code for the project
- Link repositories using the toolchain feature
Note that the within the "Add code repository" dialog when attempting to link the repository
- if you select the top level namespace the project created previously is listed
- if you select the subgroup the project created previously is not listed
Workaround
- Move the project to the top level namespace
- Link repositories using the toolchain feature in Jira
- Move the project to the subgroup
Example Project
What is the current bug behavior?
Unable to select a project that resides in a subgroup from the "Add code repository" dialog when attempting to link the repository using the Jira toolchain feature
What is the expected correct behavior?
Projects that resides in a subgroup should be listed and selectable from the "Add code repository" dialog when attempting to link the repository using the Jira toolchain feature
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com reproduced on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)
Possible fixes
This issue is being addressed by Atlassian in https://jira.atlassian.com/browse/JSWCLOUD-23744.