Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-20166

Linked Jira issue is not available in the PR Overview when source branch is deleted after a rebase and merge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 8.19.20, 9.6.5
    • None

      Issue Summary

      The linked Jira issue is missing on the PR Overview page after a rebase and merge followed by the deletion of the source branch.

      Steps to Reproduce

      1. Create a new branch from an existing branch.
      2. Add Jira key to commit messages of both source and target branch.
      3. Add an extra commit on the target branch, which is not present on the source branch such that target branch is ahead of the source branch by at least one commit.
      4. Create a pull request and merge the pull request.
      5. While merging, select "Delete source after merging" using "Rebase and fast-forward" merge strategy.

      Expected Results

      The Jira issue key should be linked to the rebased commits on the target branch and should still be linked to the pull request despite deleting the source branch of the PR.

      Actual Results

      The Jira issue is not linked to the pull request. However, it is linked to the rebased commits on the target branch.

      Workaround

      • Avoid deleting the source branch after merging.
      • Ensure the issue key is included in the pull request title prior to merging.

       

              Unassigned Unassigned
              2f0cc8be9e26 Erol Yoes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: