I am trying to print all issues with the status Done
however, nothing is returning after the if issue.fields.status == 'Done'
even though there is one issue which is Done
.
#!/usr/bin/python
import.jira.client
from jira.client import JIRA
projects = jira.project()
for project in projects:
issues = jira.search_issues('project=OK')
for issue in issues:
print issue.fields.status
if issue.fields.status == 'Done':
print issue
Result:
test@test~:$ ./ok.py
Backlog
Done
I have also tried: if 'Done' in issue.fields.status:
that didn't either work.
Aucun commentaire:
Enregistrer un commentaire