As per the reference for Bitbucket hyperlinking to source code, the url template is as follows.
The mandatory field owner is referred to as 'The account owner the repository that contains the target file'. I've tried the admin user of the repository, however this does not work. Is the owner field here the repository admin user or a different user?
The bitbucket version in use is v4.14.3
The documentation you linked to is actually for Bitbucket Cloud, hosted at bitbucket.org. For Bitbucket Server, the URL structure is similar, but slightly different.
If the repository is part of a project, use the following structure:
If the repository is under a user, use the following structure:
After the <FILE_NAME>, you can add "?at=<BRANCH> to specify the branch you want.
I used the following but this does not give me any results. It just shows me the entire source file but not the corresponding line.
Hi Prameesha, a repo can have several admins but that doesnt mean all of them are owners. The owner will be the creator of the repository. You can find who's the owner by navigating to the repo settings and clicking on User and group access.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events