Forums

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

how to use a - in Search_issues

tony cameraman September 7, 2018

I have Jira-Python code that is capable of finding the Issues ID in a particular project. 

query = jira.search_issues(        
jql_str="project=NAME AND fixVersion=ABCD AND resolution=Unresolved"
)    

for i in query:        
print(i.id)

in this code "fixVersions=ABCD". My version name is containing " - " in it. For example 
fixVersion=abcd - /Drive

the " - " is throwing me an error. is there any way to use it?

1 answer

1 accepted

0 votes
Answer accepted
tony cameraman September 7, 2018

Got it rectified, if anyone else looking into this question. "\" escape character helped using it and the use of "/" was also thowing error. it was replacesd with "\\u002f"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events