Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bitbucket server Rest API - get Tasks of Pull Request

Hi all,

i am using bit bucket server rest api to get tasks created in pull request.


when i call this url it will return empty value array even though pull request has two open tasks.

using bitbucket server version - 7.1.1

any help appreciated.





2 answers

You're likely seeing an empty list because those are tasks without a parent comment. The ability to add top level tasks (tasks without a comment) was added in Bitbucket 7 and up, and as of 7.1.1, a REST API for fetching these hasn't been implemented. We're implementing that shortly, watch out for 7.2 and up!

We are using Bitbucket Server 7.8.  I've noticed that tasks without a parent comment show up; however, it doesn't appear much different than an actual comment.

If I want to be able to differeniate between a "task" type and a "comment" top at the parent level, how do I do that?  I noticed the "severity" field in the JSON REST API response says "blocker" for an open task. 


Is the severity field a field that we could key on to differenitate, or will Atlassian update the REST response in the future to indicate if it is a task vs. a comment?

Like RayFroehlich likes this

I know it may be late to help Aaron, but if anyone winds up here as I did looking for a solution I hope this may help them.

Shows that the API is deprecated and we should use a blocker-comment as such there, and you'll see something similar as we have.



Deprecated since 7.2. Tasks are now managed using Comments with BLOCKER severity. Use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments?count=true instead.

The root where I found the solution is here.

Like Aaron Geier likes this

any help ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,218 views 2 9
Read article

Community Events

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

Events near you