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

API search always returns 0 results


I'm trying to get the results of a saved JQL filter via api. I've done this before in the past, so I believe I have the API call generally correct, and I get a 200 in response, but I always get this response: {"startAt":0,"maxResults":50,"total":0,"issues":[]}

There should be 39 results, that's what I see in the UI when I go to that filter. The saved query I'm passing in the JQL has 39 results. 

Here is the curl:

curl --location --request GET 'https://MY_INSTANCE_NAME_HERE/rest/api/2/search' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer MY_TOKEN_HERE' \
--data-raw '{"jql":"filter = 10236",
I have tried putting the JQL in instead of calling the filter directly and I get the same results. 
I use Jira Cloud. 

2 answers

Is the token encoded in base64 as your email + api token or is it just simply your api token that's there?

0 votes

Hi @Jason Bosen ,

are u sure that the token is related to the user that see 39 issues as result?


Positive. I've used that token to create JIRA issues and the creator shows us as the same user I'm viewing the filter with.

Please check that the filter used in your rest api call is shared with the user.



The filter is shared with all users in my organization. Additionally, my user created the filter and I am using my user's token. So I don't see how it could be a permission issue. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

381 views 18 22
Read article

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