Special characters in JQL

Jack September 9, 2022

Hello Team ..We have a project name like this 'my project's'

when I pass JQL to jira instance like this

results = jira_instance.JQL("project in (\"my project's\")" ..it's working but when I combine with other conditions like 

results = jira_instance.JQL("project in (\"my project's\")" and feature ='Test' it's giving me the error at 's ..can any suggest how to pass special characters in JQL.

I'm using this in python

Error : Excepting , but got s 

 

Thanks in advance.

 

 

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 9, 2022

Hello @Jack 

I have not worked with the python interface before, but I would suspect that the double-quotes after the closing parentheses and the lack of a closing parentheses to encapsulate the entire parameter might cause a problem in the example that does not work. 

Try this:

results = jira_instance.JQL("project in (\"my project's\") and feature ='Test'")

Suggest an answer

Log in or Sign up to answer