Forums

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

need to retrieve pr comments and and the line on which it is commented

Mahesh Prasad Manugunta Chenchu
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!
August 29, 2025

Hi need to retrieve pr comments and and the line on which it is commented 

 

Say me be an object with attributes 

1. file name

2. entire line on which comments was mas made 

3.  comments made and response from the author

 

I want to train my model with this

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 1, 2025

Hi @Mahesh Prasad Manugunta Chenchu

Welcome to the community.

You could try using our API here: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-get

It includes some fields if the comment is inline or not and with the "path" value string.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events