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

Don't erase the branch name if it is too long when creating a branch (from Jira)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • 1
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Bitbucket Server version: v5.5.0

      Jira version: v7.5.2

      Browser: Google Chrome Version 63.0.3239.132 (Official Build) (64-bit)

      I like to use descriptive names for my Jira tickets. Therefore it is not uncommon to have relatively long ticket titles. When using the Bitbucket integration to create a git branch from Jira, the branch type, project key, ticket id and ticket title together make up the branch name. However, since my branch names cannot be longer than 100 characters, I regularly get an error message like this:

       The ref name, once fully qualified, is limited to 100 characters.

      That is fine, but in addition to displaying the error message the name after the branch type part is erased, which my colleagues and I find very annoying. 

      I want to suggest that you keep the name as it is and just display the error message and leave it to the user to either truncate or completely rewrite the automatically generated branch name. For improved user experience the remaining number of characters allowed can be displayed, or in red the number of characters exceeding the allowed length.

       

      Reproduction:

      • Create a Jira project  and a corresponding Git repository
      • Create a Jira ticket with a long description (exceeding the mx branch name length)
      • From the Jira ticket click "Create branch"
      • Select "repository", "branch type" and "branch from" 
      • Leave the suggested "branch name" as it is
      • Press the "create branch" button

       

      Actual result: An error message is shown and the branch name part after the branch type is erased.

      Desired result: An error message is displayed and the (too long) branch name is retained. An indicator showing the number of excessive characters is displayed.

              Unassigned Unassigned
              mvanleeuwen1 Maarten van Leeuwen
              Votes:
              8 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: