for issue in issuelist:
print (issue.fields.assignee.key)
this code was running fine for about 3 months and started gettign the following error yesterday:
Traceback (most recent call last):
File "/Users/jmathe200/.virtualenvs/jira-py/lib/python3.6/site-packages/jira/resources.py", line 157, in __getattr__
return self[item]
TypeError: 'Resource' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/jmathe200/workspace/xmdmpy/jira-py/extractjiramain.py", line 48, in <module>
j.dump_issues()
File "/Users/jmathe200/workspace/xmdmpy/jira-py/extractjira.py", line 197, in dump_issues
print (issue.fields.assignee.key)
File "/Users/jmathe200/.virtualenvs/jira-py/lib/python3.6/site-packages/jira/resources.py", line 170, in __getattr__
if hasattr(self, 'raw') and item in self.raw:
TypeError: argument of type 'NoneType' is not iterable
=========
xxxx-874 <-- this is the ticket failed. but https://zzzz.atlassian.net/rest/api/2/issue/xxxx-874 does provide the correct value in the respose jason for "assignee"