Search code examples
restjirajql

Bypassing length limit of JQL


I have to run a rather complex set of queries with many OR operators and long lists in IN statements which I have to create dynamically. Overall the query will be well beyond 2000 characters, most likely even more than 5 or 6K.

My assumption is that the limit on JQL is because of the limit of http GET requests. Is there an alternative to pass JQL to Jira ? At the moment I use rest/api/2/search?jql=... from a Java program.

I know there is an approach that involves defining and using filters and thereby moving the lengthy parts from JQL to the filters. But in my case this would make me create lots of temporary filters and delete them afterwards.


Solution

  • It seems POST search request has no limitation by JQL length