API JQL enhanced search returning only IDs

Hello everyone, 
I'm having an issue with the JQL Search endpoint. When reading the documentation at https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get it is stated that the expected response should be a JSON with an "issues" array containing the tickets information.

However, when I use the endpoint to search for issues I only get a list of IDs, without any other ticket details.

Am I doing something wrong?

Here's an example of the response I get:

Post photo.png

 

2 answers

1 vote
David Nickell
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.
December 3, 2024

As a GET call, you can troubleshoot in your browser.   I just ran this call against my instance and it worked as expected:

https://splitdimedata.atlassian.net/rest/api/3/search?jql=Project=GTMS2&maxResults=20&startAt=0

Issue Search.jpg 

Have you used your REST call before?  I can get close to your response (ID only) if I add the "&fields=id" to my API Call.  

You may want to make sure your JQL string isn't causing an issue.... (Here's a hint - use a filter whenever possible  jql=filter=88888).  You can also experience strange behavior if you are not logged in or authenticated correctly.   Is you call embedded in code somewhere?

Run your GET call in the browser and trouble shoot from there.

Good luck!

 

 

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 2024

Hello @Caio Obatake Watari Gonçalves Cadini 

What is the payload/full API call you are making?

Are you including the fields parameter? According to the documentation of that parameter, "id" is the only field returned by default.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events