Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52667

JIRA link not detected if several trackers are configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • jira-plugin
    • None
    • Jenkins ver. 2.107.1
      JIRA plugin 3.0.0 (same behaviour with 2.5.2)

      We are using several Jira tracker. If I configure only one Jira site in the configuration then:

      • issue links for tracker01 link to the configured tracker
      • but for issues from the other tracker02 the links lead to a wrong tracker

      So I configured two Jira sites. They have different URLs and different issue patterns. My expectation is that links from tracker01 with pattern01 get detected and linked to tracker01, same for tracker02. What happens is that after configuring the second tracker02 (no change on tracker01), no links are detected anymore at all (just displaying the text without link).

       

      proposal: change behaviour so that first issue pattern gets evaluated and - if it has a match - create a link to the first tracker. If no match, then continue with the next pattern/tracker combination.

       

      patterns I used (similar to this):

      tracker01: (ABC-[1-9][0-9]*)([^.]|\.[^0-9]|\.$|$)

      tracker02: (BCD-[1-9][0-9]*)([^.]|\.[^0-9]|\.$|$)

            Unassigned Unassigned
            michaeldeckert Michael Deckert
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: