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

Jira "Create branch" feature creates branch name which is too long for Bitbucket

    XMLWordPrintable

Details

    Description

      Summary

      When creating branch from a Jira issue, if the Jira Summary issue is too long (more than 100 characters), the shortened branch name that is suggested which is shorten is still too long. E.g, for a Jira issue (type story):

      Jira Issue Summary: "123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789" (149 characters)

      Suggested branch name: RTA-5066-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789 (98 characters)

      Suggested prefix: "feature/" (8 characters)

      That makes a total length of the suggested branch name of 106, more than the 100 characters allowed for a branch name

      This bug will also then lead to the following bug: https://jira.atlassian.com/browse/BSERV-10433

      Steps to Reproduce

      1. Create a Jira issue with a long summary (E.g: 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789)
      2. From the issue page, click 'Create branch', this should redirect to the create branch page on Bitbucket Server
      3. On the branch create page, click 'Create' without changing anything (using the suggested branch name and prefix)

      Expected Results

      Users are able to create a branch on Bitbucket with the suggested branch name

      Actual Results

      Users won't be able create a branch on Bitbucket with the suggested branch name. Instead, they get the error message "The ref name, once fully qualified, is limited to 100 characters", without any possibility to change the branch name.

      Attachments

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              vchoo Vivian C
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: