pycontribs / jira

Python Jira library. Development chat available on https://matrix.to/#/#pycontribs:matrix.org
https://jira.readthedocs.io
BSD 2-Clause "Simplified" License
1.96k stars 870 forks source link

function not working #1609

Closed Calm3890 closed 1 year ago

Calm3890 commented 1 year ago

Bug summary

JIRA function of issue_types_for_project not found when being called

Screenshot 2023-02-20 at 09 43 46

Is there an existing issue for this?

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

"main", "3.4.1"

Python Interpreter version

3.9

Which operating systems have you used?

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jira.the_function(x)
# 3.
...

Stack trace

AttributeError: 'JIRA' object has no attribute 'issue_types_for_project'

Expected behaviour

The issue function properly

Additional Context

No response

studioj commented 1 year ago

hey @Calm3890 care to try with version 3.5.0? this method was only added in 3.5.0 https://github.com/pycontribs/jira/compare/3.4.1...3.5.0?diff=unified#diff-442d14b20d591afd0c3de830d2803e30d4816eedc708f9ad129316aa7e5a4a7cR3170