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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events