Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-38996

problems with issue-key rendering if custom project key pattern set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 4.4.5, 6.2.2, 6.2.3
    • Issue - Actions
    • we use standalone application on JDK 6 and 7, Windows and Linux

    Description

      we set the jira.projectkey.pattern property to a pattern like

      ((\d{5})|([A-Z][A-Z0-9]+))

      (yes, we didn't followed the "starting with a letter" rule, but in 4.4.5 this rule was not obvious for us).

      After that ( we didn't noticed the relationship) we noticed, that rendring of issue keys (like RPL-234) in description and comments was not as a link, but as RPLnullRPL-234 ... ugly.

      After investigating, I think the problem is in JiraKeyUtils.java, especially createKeyFromMatchingGroups seems to ignore the circumstance, that there can be more than 1 alternative for the project key. My workaround (see the patch file) is to change the issueKeyRegex patterns of the DefaultKeyMatcher and to change the way, the key is combined in createKeyFromMatchingGroups. For us (I think) it's working like intended now ... maybe you can use it

      Attachments

        1. JiraKeyUtils.patch
          2 kB
          alexander.eller

        Activity

          People

            Unassigned Unassigned
            104bbfc44593 alexander.eller
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: