Forums

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

Filter out deleted comments on a pull request

Tuan Nguyen
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!
April 26, 2018

I am wondering if there is a way to exclude deleted comments using bitbucket rest api.

I have tried:

https://api.bitbucket.com/2.0/repositories/leremede321/test-bitbucket-api/pullrequests/2/comments?pagelen=10&q=deleted%3Dfalse

but it does not work

1 answer

0 votes
J7mboSixt August 29, 2019

Did you ever figure this out?

According to documentation on queries for pull requests, queries for pull requests do not allow a deleted flag. Only state=open, for example, and that's for the pull request not the comment (as a comment can't have an "open" flag as that wouldn't make sense).

There is also no documentation for /pullrequest/{id}/comments queries, so it stands to reason that these filters are solely for the pull request and not for the comments.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events