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?
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:
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.