- changed status to resolved
Hardcoded JIRA issue regex is not compliant with atlassian documentation
Issue #9
resolved
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_2013
,R2D2
,MY_EXAMPLE_PROJECT
. - Examples of unsupported keys:
2013PROJECT
(first character is not a letter),PRODUCT-2012
(hyphens are not supported).
- Examples of supported keys:
https://confluence.atlassian.com/adminjiraserver/changing-the-project-key-format-938847081.html
Comments (1)
-
repo owner - Log in to comment
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.