Forums

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

Can i search a issue that contains double quotation mark by jql

john smith October 25, 2022

just like

summary ~ "\"exam\"ple\""

2 answers

0 votes
Benjamin
Community Champion
October 25, 2022

@john smith ,

 

Should be able to use the \ as an escape character. Here's a post showing a good example of a query use qoutation marks,

 

https://community.atlassian.com/t5/Jira-questions/Help-with-JQL-query-quotation-marks/qaq-p/1769883

-Ben

john smith October 25, 2022

@Benjamin 

Thanks for reply.

Actrully i used thay in real situation, jql statement is [summary ~ "\"examp\"le\""], but when i use the API SearchService.parseQuery(), but parse wasn't succees.

Like Finn Allen likes this
Benjamin
Community Champion
October 26, 2022

Hi @john smith ,

 

Not sure if the API using is a JQL query parser.

You might want to use something like this:

https://docs.atlassian.com/software/jira/docs/api/7.1.7/com/atlassian/jira/jql/parser/JqlQueryParser.html

 

-Ben

john smith October 27, 2022

@Benjamin 

Still the same. Exception was thrown.

0 votes
Alex Koxaras -Relational-
Community Champion
October 25, 2022

Suggest an answer

Log in or Sign up to answer