Auto complete suggestions API is not giving more than 15 rows

Timone
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2025

This questions has been asked several times before without any answers.

/rest/api/3/jql/autocompletedata/suggestions is supposed to give a list of all possible values for the field parameter provided, but the resultset is limited to 15.

I am looking for assignee, and have tried adding maxResults but that changes nothing.

There is nothing in the docs about limiting results or pagination

ALSO

when looking for assignee, I get a whole bunch of jira users that have nothing to do with my organization or project. Anyone know why?

 

 

2 answers

0 votes
David Bakkers
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.
February 20, 2025

Hello @Timone 

I think you are mistaken. There is nowhere where it says that API endpoint is 'supposed' to do any such thing. The endpoint just does what it says in the documentation, and returns the a list of autocomplete suggestions for a field when performing a JQL search of that field. and it limits the results it returns just the same way the GUI does:

Untitled.png

Just as the field autocomplete mechanism when doing JQL searches using the GUI doesn't initially provide every single possible value for that field, neither does the API endpoint, and the endpoint API can't do what the GUI does and click the 'Get more' button to trigger supplementary, sequential queries to itself and get the next batch of results.

The purpose of that API endpoint is not to lookup every single possible value of a field that could be auto suggested.

So, in summary, you should think of the Get field auto complete suggestions endpoint as something that returns a limited set of results that 'sort of' simulates what the auto complete mechanism initially delivers to the user via the GUI, for some types of fields, most of the time.... nothing else.

PS. If you search through the bugs and suggestions logged for Jira Cloud in JAC related to 'autocompletedata', you'll probably find one that relates to what I've described.

0 votes
Vishal Biyani
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.
February 20, 2025

@Timone 

For the 2nd part of your question (After ALSO), are u referring to results from /rest/api/3/jql/autocompletedata/suggestions 

or is there another API that you are using?

 

Suggest an answer

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

Atlassian Community Events