JQL doesn't return the correct order

I’m trying to request the following JQL issuekey in (11769,11770) and the response returns an array of issues with the wrong order. Is it possible to get the issues with same order as the JQL (first the issue 11769 and then the issue 11770) ?

Hi @Francisco.Santos,

It’s not possible to order the search results in the same way as specified in the in clause. The items in the in clause are treated as an unordered collection where duplicates are allowed.

For example, key in (TEST-1, TEST-4, TEST-1, TEST-3) order by key ASC will return TEST-1, TEST-3, TEST-4.

Here is a link to the ORDER BY documentation:


1 Like