Hi,
We recently upgraded to Jira 7.13.2 and it seems the search_issues in python no longer works. It is just returning null values.
Project = “project name” AND status = open AND assignee = currentuser()
Try this on search bar with Actual project name
Hi Rohit,
Thanks. I've tried but it still does not work.
Im running the below codes
query = jira.search_issues(jql_str="Project = 'Incident Management' AND status = open")
for i in query:
print(i.id)
It just throw the below error:
{"errorMessages":["Error in the JQL Query: Expecting either 'OR' or 'AND' but got 'Management”'. (line 1, character 21)"],"errors":{}}
you need to escape characters inside of your JQL string like single quotes.
https://linuxconfig.org/list-of-python-escape-sequence-characters-with-examples
The escape character is not the issue. even if it is a different jql it still show null values.
I tried the below codes:
from jira import JIRA
options = {'server':'hostname','verify':False}
jira = JIRA(options, basic_auth=('user', 'user'))
issue = jira.issue("INC-120440")issues = jira.search_issues('resolved is empty',maxResults=3)print("RESULTS>>>>")print(issue.key)for i in issues: print("ticket") print(i.fields.summary)
Result:
RESULTS>>>>INC-120440
The result for issue = jira.issue("INC-120440") yields results but using the search_issues it yields blank value.
It looks like you're new here. Sign in or register to get started.