I recieved a server response (r = request.get(url,auth) with data that I searched using 'api/2/search?jql=' with certain paramaters I need. However, how do I get or print the issueId number (only) of the tickets in the list of the search?
For example:
The data would look like:
{u'issues': [{u'key': u'x-123', u'fields': {u'customfield_123': None}......}
And, I would like to get the value/string 'x-123' (only) from 'key'.
I have done the following, but to no avail:
r.json()['issues'] #returns all values for issues
r.json()['issues':'key'] # returns TypeError: unhashable type.
Thanks in advance for those who help.