[Python] Unable to access jira worklogs via python-jira

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to access the worklogs in python by using the jira python library. I am doing the following:

    issues = jira.search_issues("key=MYTICKET-1")
    print(issues[0].fields.worklogs)

    issue = jira.search_issues("MYTICKET-1")
    print(issue.fields.worklogs)


    as described in the documentation, chapter 2.1.4. However, I get the following error (for both cases):

    AttributeError: type object 'PropertyHolder' has no attribute 'worklogs'


    Is there something I am doing wrong? Is the documentation outdated? How to access worklogs (or other fields, like comments etc)? And what is a PropertyHolder? How to access it (its not described in the documentation!)?

    Continue reading...

Compartilhe esta Página