Hi!
I develop plugin for Bitbucket Server version 7.6.0.
I want to get all comments on pull request. I use method commentService.search
commentService.search(new CommentSearchRequest.Builder(pullRequest).build(), new PageRequestImpl(0, 100));
This method don't return all comments but only file's comment.
What do i do wrong and how i can fix this?
nessesary to use
CommentSearchRequest.Builder builder = new CommentSearchRequest.Builder(pullRequest);
builder.anchorState(CommentThreadDiffAnchorState.ALL);
commentService.search(builder.build(), new PageRequestImpl(0, 100)).getSize();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.