In order for GitLab to display correct repository clone links to your users it needs to know the URL under which it is reached by your users (e.g. http://gitlab.example.com)

To reconfigure:

  1. Access the GitLab configuration file in /etc/gitlab/gitlab.rb. 
    sudo vi /etc/gitlab/gitlab.rb
  2. Change the external_url value to your GitLab server URL. 
    external_url "http://gitlab.example.com" #this is the default URL
    external_url "http://X.X.X.X.local/" #change it to your GitLab Server URL
  3. Run the reconfigure command to make the change take effect. 
    sudo gitlab-ctl reconfigure


Read this GitLab documentation to know more about configuring the external URL for GitLab.


You should be able to add the GitLab repositories via Git Integration for Jira add-on > Connect to Git Repository / Auto-connect.