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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.