Downloads (PDF, HTML & XML formats)
[FishEye Knowledge Base]
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:
You can configure linkers for a specific repository or configure linkers for all repositories.
To configure the linkers for a repository:
To configure the linkers for all repositories:
Screenshot: Viewing linkers for all repositories
To add a new linker:
(?i)
at the start of the regex.Tip: See the Example Linkers section below for examples of linkers to JIRA and Bugzilla servers.
Screenshot: Adding a new linker
Here are some examples of simple linkers.
Do not create linkers for a JIRA server, if you have already set up JIRA integration between your FishEye instance and that JIRA server.
To link any occurrence of a JIRA-style issue to JIRA:
Regex: [a-zA-Z]{2,}-\d+ Href: http://jirahost:8080/browse/${0}
The regular expression above matches any sequence of two or more alphabetical characters, followed by a dash, followed by a number, which comprise the format of JIRA isssue IDs (such as AB-123 or ABC-123 or ABCDE-123). Replace jirahost
with the hostname of the desired JIRA instance.
To link a specific set of JIRA projects (e.g. JRA, CONF and CRUC) to a JIRA instance:
Regex: (JRA|CONF|CRUC)-\d+ Href: http://jirahost:8080/browse/${0}
The regular expression above matches only specific JIRA issue keys with any number, like JRA-123 or CONF-123 or CRUC-123. Replace jirahost
with the hostname of the desired JIRA instance.
To link to specific Bamboo builds:
Regex: (ABC)-[a-zA-Z]+-\d+ Href: http://bamboohost/browse/${0}
The regular expression above matches Bamboo build IDs like ABC-MAIN-123 or ABC-BRANCH-123. These will then be made links to the build reports in your Bamboo instance. Replace bamboohost
with the hostname of the desired bamboo instance.
To link bug numbers that occur at the start of a line to Bugzilla:
Regex: ^BUG: (\d+) Href: http://bugzilla/bugzilla/show_bug.cgi?id=${1}
To link bug numbers that occur after the word bug and optionally whitespace, ":" or "#" (e.g. Bug123, bug:123, or BUG #123):
Regex: (?i)bug[#|\s|:]*(\d+) Href: http://bugzilla/bugzilla/show_bug.cgi?id=${1}
The regular expressions above matches Bugzilla bug IDs. These will then be made links to build reports in your Bamboo instance.
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:
'and
' or commas.