[Python] Cannot read Jira issue custom field using Python Jira library

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using the Python Jira library jira 3.8.0 and I want to use it to evaluate the custom field customfield_10032 (story points assigned to a task issue). However, using jira.issue(), I cannot access the field.

    My code looks like the following:

    issue = jira.issue('MYPROJ-001')
    storypoints = issue.fields.customfield_10032
    print(storypoints)


    This does not work, the field is not present.

    I've also tried with no luck:

    # Alternative 1
    issue = jira.issue('MYPROJ-001', fields='customfield_10032')

    # Alternative 2
    issue = jira.issue('MYPROJ-001', fields='all')

    # Alternative 3
    issue = jira.issue('MYPROJ-001', fields='*all')


    However, the following works just fine (but is too slow to scale for my purposes):

    issues = jira.search_issue('key = MYPROJ-001')
    for issue in issues:
    storypoints = issue.fields.customfield_10032
    print(storypoints)


    Any ideas on how to make jira.issue() work for me? Thanks in advance! <3

    Continue reading...

Compartilhe esta Página