The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Adding Code Insights annotation outside of diff

pahnev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2021

Currently it seems that posting annotation to a PR using the Code Insights API, works only when the annotation is on the same line as the code change.

So if we imagine that there's a PR with a change on line #10, we can post annotation on that line. But if we try posting the annotation on line #8, the API returns 204, as if the call succeeded, but no annotation will be visible on the PR diff view.

Is that expected behavior or am I missing something here?

Edit:
And now I've found the actual API doc, which explicitly says that annotations outside the diff will not be displayed. https://docs.atlassian.com/bitbucket-server/rest/7.18.2/bitbucket-code-insights-rest.html#idp10
You may remove my post.

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events