Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you