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.95k stars 864 forks source link

create_project method throws internal server error #1716

Open chelydrae opened 1 year ago

chelydrae commented 1 year ago

Bug summary

Dear community,

I am trying to add a project to my Jira workspace. Thus, I use the following method. The key and name attributes are strings, whereas the key consists of uppercase characters. Despite the error message, the project is created and can be found in the Jira App. However, it is not created completely, as e.g. the workflow states are completely missing.

The error message I am receiving is: response text = {"errorMessages":["internal server error"],"errors":{}}

I have no clue how to fix this. Help is highly appreciated!

Is there an existing issue for this?

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

3.5.2

Python Interpreter version

3.9

Which operating systems have you used?

Reproduction steps

# 1. Set options
OPTIONS = {
'server': 'https://XXXXXXXXXXXXX.atlassian.net/',
'verify': False
}
# 2. Create Jira object
jira = JIRA(
            options=OPTIONS,
            basic_auth=(
                "XXXXXXXXXXX@gmail.com",
                JIRA_TOKEN
            )
        )
# 3. call create_project method
jira.create_project(
            key=key,
            name=name,
            template_name="Kanban software development"
        )

Stack trace

no

Expected behaviour

Create project should create a project with no internal server error message + project created contains typical project_type states (e.g. backlog, in progress, etc.)

Additional Context

No response