Custom referencing issue pattern for custom Custom Issue Tracker

Description

Since GitLab 10.6, a new useful feature has been delivered "Navigate to external issue tracker". With "Custom issue tracker service" use case it will be appreciable to be able to customize the pattern (regexp?) for referencing issue.

Currently, there is an hardcoded pattern #<ID>

Proposal (simple version)

New field that accept regular expression string with at least 1 capturing group () (if more than one, just keep first and ignored others)

Screen_Shot_2018-03-26_at_17.00.13

On this fake example, user is able to determine that referencing issue for external has to match

#<ID> or INC-<ID>

We should add default value to #<ID> if user does not fill or determine new pattern.

Proposal (fully customizable version)

As same as simple version but with able to use named captured group feature from regexp

like (?<project>\w+)-(?<id>\d+)

Then get a mapping with

https://customissuetracker.com/:project/:id

Links / references

Edited by Thibaud Lepretre