Forums

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

Bitbucket Pull Request Automatic Hyperlinks (Guessing Wrong)

Chris Harper March 26, 2018

Any suggestions: How can I disable a link that is automatically created in a pull request?

Details:

When creating a pull request Bitbucket (Server) is automatically finding and linking JIRA issues.  Which would be fantastic except...

It's examining text in the pull request and guessing that certain words or phrases belong to JIRA issues and it's getting them wrong (they're not JIRA issues). 

For example, make a pull request and fill it with things like "Fixing ABC-123 for #1 person".  Bitbucket will automatically hyperlink ABC-123 as a JIRA issues that doesn't exist.  Note that it'll also automatically link "#1" to the first pull request in the project?

I don't see a way to turn off this behavior or fix it once it makes an incorrect link.  Note that in our case, it tends to pick up on DOORS requirement IDs in the pull request (which are not linked to Atlassian or JIRA) and assumes they're JIRA issues.

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
March 26, 2018

To turn it off you need to remove the link between Jira and Bitbucket. see Linking Bitbucket server with Jira. You may also want to vote on this issue, BSERV-2470, to have the integration check for issue validity before linking. 

Chris Harper March 26, 2018

Thanks, appreciate the info.  Disabling the JIRA link is definitely not what I want; I voted on that issue.

What about the automatic link to (for example) "#1" and "#2" that automagically link to pull requests?  I assume this is Bitbucket only and seems like a separate issue...

Mikael Sandberg
Community Champion
March 27, 2018

#1 example is part of the markdown support, Mark up comments, issues and commit messages, and I do not know if there is an issue logged for it or not.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events