FishEye can render any issue IDs or Bug IDs that appear in commit messages or comments as hyperlinks. Users can click the links to quickly navigate to the relevant issue/bug in your issue/bug tracker. This link rendering relies on FishEye detecting certain substrings in commit messages and comments. You can configure the "linker" patterns that FishEye uses to detect these substrings for each repository in FishEye.

Please note, if you have set up JIRA integration between your FishEye instance and a JIRA server, you will need to disable linkers for that JIRA server. Otherwise, the linkers will override the integration features described on that page (which includes linkers).

On this page:

Configuring linkers

You can configure linkers for a specific repository or configure linkers for all repositories.

Configuring linkers for a specific repository

To configure the linkers for a repository:

  1. Click the Repositories link. The list of repositories set up in your FishEye instance will be displayed.
  2. Click the name of the repository, (under the Name column in the list of repositories). The Repository Options for the repository will be displayed in a dialogue.
  3. Click the Linkers tab. The 'Linkers' screen will be displayed (see screenshot below).
  4. Configure the linkers for the repository as desired:
  5. Save your changes.

Configure linkers for all repositories

To configure the linkers for all repositories:

  1. Click the Defaults link. The 'Repository Defaults' will be displayed, with the Linkers tab shown (see screenshot below).
  2. Configure the linkers for all repositories as desired:
  3. Save your changes.

Screenshot: Viewing linkers for all repositories

Adding a linker

To add a new linker:

  1. Navigate to the linkers for a specific repository or the repository defaults, as described above, and click the Add... link to add a new linker. The 'Add a Linker' dialogue will be displayed.
  2. Complete the fields on the dialogue as follows:
  3. Click the Add button to add the linker.
  4. Save your changes.

(tick) Tip: See the Example Linkers section below for examples of linkers to JIRA and Bugzilla servers.

Screenshot: Adding a new linker

Example linkers

Here are some examples of simple linkers.

JIRA examples

(warning) Do not create linkers for a JIRA server, if you have already set up JIRA integration between your FishEye instance and that JIRA server.

Bamboo examples

Bugzilla examples

Configuring the SyntaxDef field

(info) This is an advanced feature, intended for use by experienced developers only.

Please note;

This example matches numbers that appear after a PR: and might be seperated by commas or 'and':

   PR: 123
PR: 123 456
PR: 123, 456
PR: 123, 456 and 789
<syntaxdef>
/PR:\s*((\d+\s*(and|,)?\s*)+)/i : {
  nummatcher(${1});
}
context nummatcher {
  /\d+/ : {
    region {
      href="http://issues.apache.org/bugzilla/show_bug.cgi?id=${0}";
    }
  }
}

Understanding the SyntaxDef example: