Forums

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

JQL Query not working for project name with special characters and spaces

Pranay Verma
Contributor
August 23, 2019

I'm trying to get all issues in my project. For that I'm using JQL in Python. Part of the code used for querying is something like this:

jira_options = {'server':'server name'}
jira = JIRA(options=jira_options, basic_auth=('username', 'password'))

issues_in_project = jira.search_issues('project = Dev+ Project AD', startAt=0, maxResuts=100, validate_query=True, fields=None,expand=None,json_result=None)
print (issues_in_project)

Can someone help me with this? It'll be much appreciated

2 answers

1 accepted

1 vote
Answer accepted
Roman Kersky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2019

HI, try this code :

issues_in_project = jira.search_issues('project = \"Dev+ Project AD\"', startAt=0, maxResuts=100, 

Pranay Verma
Contributor
August 23, 2019

Hey @Roman Kersky 

Worked like a charm. Thanks a lot.

1 vote
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2019
Pranay Verma
Contributor
August 23, 2019

Hi @Sreenivasaraju P ,

I tried using the project key, but apparently I got an error stating "You do not have permission to view it"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events