Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
\b[A-Z][A-Z_0-9]+-[0-9]+\b

Limiting matches to specific Project(s)

Its a common scenario to have subjects that contain issue keys (or just text) that happen to match issue key format. JEMH will select the first such issue that is found in the local instance, you may want to limit the projects that are considered valid for commenting, eg:

Code Block
This is an example DDD-123 but what about ABC-123

If DDD-123 happened to be a real issue in the local instance, it would take precedence. You can configure the IssueKey (comment) Regexp field to limit commenting to just the ABC project, the example below shows how multiple projects can be OR’d together to be ‘valid’:

Code Block
(ABC|DEF)-[0-9]+

Avoiding Subject Issue Key Mismatches

...