Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Link to another service regex - stop linking to commits

Deleted user July 27, 2018

Hiya


I am attempting to use the link to a custom web service feature within a Bitbucket repo.

I have the Link Key as `LK:(\w+)` and the domain as `https://externalservice.com/card/\1`. So in theory that should pickup any part of the commit with a ticket number, which looks like `LK:323042304` or so. 

It works for purely word related tickets but does not link ticket numbers with integers in them. Bitbucket tries to link to them as commit ids which of course brings up a 404 page as they are not valid commits.

Is there a way to get around this / force bitbucket to not look for commit ids when grabbing that regex ?

 

I have placed some examples of what matches and what does not below:

 

Commit message: LK:694725259

Result link: https://bit_bucket_repo_url/commits/694725259

Expected link: https://externalservice.com/card/694725259

 

Commit message: LK:test3434

Result link: https://externalservice.com/card/test3434

Expected link: https://externalservice.com/card/test3434

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events