Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-21361

DVCS doesn't create hooks automatically for new repos in BitBucket / GitHub/Gitlab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 8.20.22, 9.4.6, 9.5.0
    • 8.20.0, 8.22.0, 9.2.0, 9.3.0, 9.4.1
    • DVCS Connector
    • None

      Issue Summary

      The bitbucket webhooks are not generating during repo creation, as a result, new commits containing the Jira issue keys are not showing up in the Dev panel. The same issue is for GitHub, Gitlab.

      Steps to Reproduce

      1. Create a Jira instance
      2. Link DVCS account: Bitbucket cloud
      3. Create one new repo in the Bitbucket cloud
      4. Wait for hourly job which should sync all repos ant creates webhooks for newly created repos.
      5. Navigate to <Bitbucket cloud> -> workspace -> < new repo> -> Repository settings -> Repository hooks.
      6. The webhook URL will be missing from the above page.

      Expected Results

      Hourly dvcs sync job should create webhook for all the newly created repos.

      Actual Results

      Hourly dvcs sync job doesn't create webhooks under <Bitbucket cloud> -> workspace -> < new repo> -> Repository settings -> Repository hooks.

      Workaround 1

      After creation of new repo you have to do manual refresh of repositories included in organization/ workspace. Then webhooks will generate automatically.

      Workaround 2

      Sometimes, if the automatic DVCS sync to has already kicked in, the webhooks are not getting created by Refreshing repositories or Running a full sync in the repository.

      • Deleting/creating the DVCS account for the affected repository will create the missing webhooks

              58905173dc40 Radoslav Velichkov (Inactive)
              5364cbaf95e3 Artur Luszcz (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: