python-jira

Access specific information within worklogs in jira-python

时光怂恿深爱的人放手 提交于 2019-11-29 14:38:47
How can I get the minutes spent from a worklog from an issue using the jira-python library? Using the jirashell I see that the issue has the attribute issue.fields.worklog, however when I try to access that in my python code I get the error: AttributeError: type object 'PropertyHolder' has no attribute 'worklog' . If I create a jira client and do jira_client.worklogs(ticket.key) in my python code, it returns a list of Worklogs and their ids but I don't know what to do with that. I see in the documentation there's a worklog() function that takes in the issue id, and the worklog id, but I don't