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

Jira Issue keys in pull request title and commits omits trailing digits if there are multiple Jira issue keys in a title/commit and the keys are written keys in a specific pattern

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.4.0
    • 5.10.0, 5.11.0, 5.12.0, 5.13.0, 5.14.0, 5.15.0, 5.16.0, 6.0.0, 6.1.0
    • Pull Requests

    Description

      Summary

      It looks like the link to Jira issues omit trailing digits if there are multiple Jira issue keys in a title/commit - and if the title/message contains issues keys in the following pattern for example:

      KEY-1, KEY-1X, KEY-1XXX

      For example, an issue key number, KEY-1 is set first, and then, if the next Jira key set on the same sentence has 'KEY-1' on the issue key as well, for example, KEY-102, the 'KEY-1' will be highlighted while the '02' will be left out for some reason.

      How to Replicate

      1. Connect Bitbucket to a Jira instance via applinks
      2. Perform some new commits into a repo and create a pull request with the following title
        PRO-1, PRO-123, PRO-1254

      Expected Results

      All Jira keys in the pull request title should be parsed correctly and link to their respective issues on Jira

      Actual Results

      Digits get omitted from the Jira issue keys, for example:

      Looks to occur on commit messages as well

      Workaround

      Rename the pull request titles and move around the order of the Jira issue keys in the title

      Attachments

        Issue Links

          Activity

            People

              ysun Yingran Sun
              vchoo Vivian C
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: