Using jira-python I can get a list of components for projects and I can get the component name and project but component.lead fails. But I can see the component.lead field in the PyCharm debugger ?? Help.
for component in components:
cols = list()
cols.append(component.name)
cols.append(component.project)
cols.append(component.lead)
File "C:/My_Workspaces/PycharmProjects/JIRA/components.py", line 62, in main
cols.append(component.lead)
File "C:\Python37-32\lib\site-packages\jira\resources.py", line 177, in __getattr__
raise AttributeError("%r object has no attribute %r (%s)" % (self.__class__, item, e))
AttributeError: <class 'jira.resources.Component'> object has no attribute 'lead' ('Component' object is not subscriptable)