Hardcoded JIRA issue regex is not compliant with atlassian documentation

Issue #9 resolved
Martin Čambal created an issue

We use prefixes for project keys with underscore e.g. D_ for development, I_ for infrastructure teams. Unfortunately the hardcoded regex for Jira issues doesn’t support underscore.

This is the existing regex [A-Z][A-Z0-9]*-\\d+, the requested change would be [A-Z][A-Z0-9_]*-\\d+

Based on the Atlassian documentation only formats that meet all of the following rules are supported:

  • The first character must be a letter,
  • All letters used in the project key must be from the Modern Roman Alphabet and upper case, and
  • Only letters, numbers or the underscore character can be used.
    Examples:

    • Examples of supported keys: PRODUCT_2013R2D2MY_EXAMPLE_PROJECT.  
    • Examples of unsupported keys: 2013PROJECT(first character is not a letter)PRODUCT-2012(hyphens are not supported).

https://confluence.atlassian.com/adminjiraserver/changing-the-project-key-format-938847081.html

Comments (1)

  1. Julius Davies [bit-booster.com] repo owner

    Fixed in v2022.09.28 - thanks for filing this bug ticket !

    Let me know if you need this back-ported to our Bitbucket 6.x and Bitbucket 5.x release branches.

  2. Log in to comment