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,558,124
Community Members
 
Community Events
184
Community Groups

In jql how use write query for sprint label which is active and print comment json objects

Using jql  search query, the sprint label can be given as input

 http://jira.domain.com/rest/api/2/search?jql=Sprint = {sprint input},

which should be active sprint and should display the comments links in json object  from the above url displays all the json object expect comment section why and how to write jql for print the comment json object with sprint input.

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 21, 2021

Hi @bindu shree 

That REST API method for a JQL search should include any comments which are in the issues.

The JQL to return issues in the current open (active) sprints would be as shown below.  Please substitute in your project name and try this in advanced search to confirm it returns what you expect, and then use it in the REST API call.

project = myProjectName AND sprint IN openSprints()

Kind regards,
Bill

Hi @Bill Sheboy 

I don't want to add the project name, I need to pass to sprint label and should display json data of comment links

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 22, 2021

Of note...

When you call the REST API with search and JQL, do you see the comment data?  It is present when I call this for the search method with JQL.

Next, if you do not add the project to your JQL, this could return multiple sprints across different projects, and this may not be what you wanted.

Suggest an answer

Log in or Sign up to answer