+6

Support commit, file, and line comments on bitbucket server

Stefan Titus 7 years ago updated by Marc Strapetz 7 years ago 3

The Bitbucket server integration for SmartGit supports comments on pull requests. However, Bitbucket server also allows comments on ordinary commits. Those comments can be on the commit, a file within the commit, or a specific line within a file. 


The REST API calls for these comments can be found here:

https://developer.atlassian.com/static/rest/bitbucket-server/5.4.1/bitbucket-rest.html#idm139808104434192

The link points to /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} which is about pull request comments only. SmartGit is already using this API. AFAIU, there is currently no API for ordinary commit comments.

Hi Marc, thank you for your prompt response.


I believe you are mistaken. The anchor in the above link is for "/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments". 


Thank you for your time,

--Stefan