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)
Hi @tim hood ,
I'm not sure but maybe some problem in 'list'? Can list in python hold different type or it as array? Maybe 'lead' have other type?
B.R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.