i am unable to fetch comments of the tickets.

saswati.mahapatra
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!
September 3, 2021

i am passing the url : /rest/api/2/search?jql=project=ABC&maxResults=-1 to fetch all ticket information available in the project ABC. i can get all information but not the comment part.

 

while searching  individually for a ticket i can see the comment field.

url :/rest/api/2/issue/ABC-9

 

can anyone help  what i should do?

1 answer

1 vote
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 6, 2021

Hello @saswati.mahapatra,

Welcome to the Atlassian Community!

Thank you for sharing the details.

Testing on my local site using a simple search also doesn’t return the comments and checking some similar cases, I believe this is by default, but it’s possible to get all fields by adding &fields=*all to make sure it will return all fields, including comments.

https://your-site.atlassian.net/rest/api/3/search?jql=project=PKEY&fields=*all

You can also use the endpoint below in case you want to get only some fields (this one only works using v2):

https://your-site.atlassian.net/rest/api/2/search?jql=project=PKEY&fields=comment,description,summary&expand=renderedFields

Please, take your time to test and let us know how it goes.

Kind regards,
Angélica

Suggest an answer

Log in or Sign up to answer