I am working on a tool for Jira using the python-jira library.
def find_ticket_key_by_name(search_string):
global jira
result = jira.search_issues('project=FSA and status != Done and summary ~ "HOST TESTER-APP:SERVICE1-SERVICECOUNT" order by createdDate', maxResults=1)
return result
The function above successfully returns a jira object
[<JIRA Issue: key=u'FSA-11', id=u'119060'>]
however if I attempt to print the key value
result.key
I get this error
AttributeError: 'ResultList' object has no attribute 'key'