Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,460,050
Community Members
 
Community Events
176
Community Groups

i am unable to fetch comments of the tickets.

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

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
TAGS

Atlassian Community Events