Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get human readable errors during the use of com.atlassian.jira.jql.parser

Ivan Shershnev
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!
November 29, 2022

Hello.

I'm using 

com.atlassian.jira.jql.parser.DefaultJqlQueryParser

parser on JVM. When my jql cannot be parsed correctly, I get an error message of form like:

Error<1:54> - jql.parse.expected.text.eof[)]

for jql:

key in (AA-11111, AA-12345) AND status not in (Closed

I'd very much like to get an error like one during use of search endpoint on real Jira:

Error in the JQL Query: Expecting ')' before the end of the query.

Can I somehow achieve this? Or it's just a functionality of Jira which is not included in parser lib?

0 answers

Suggest an answer

Log in or Sign up to answer