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 873 forks source link

create project with 'permissionScheme' field is causing 500 #1480

Open codectl opened 2 years ago

codectl commented 2 years ago

Bug summary

the current payload as is:

        payload = {
            "name": name,
            "key": key,
            "projectTypeKey": ptype,
            "projectTemplateKey": template_key,
            "leadAccountId" if self._is_cloud else "lead": assignee,
            "assigneeType": "PROJECT_LEAD",
            "description": "",
            # "avatarId": 13946,
            "permissionScheme": int(permissionScheme),  # <----------
            "notificationScheme": notificationScheme,
            "url": url,
        }

having this field on causes error:

response text = {"errorMessages":["Internal server error"],"errors":{}}

Is there an existing issue for this?

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

main

Python Interpreter version

3.8

Which operating systems have you used?

Reproduction steps

jira.create_project("MP", "My Project")

Stack trace

response text = {"errorMessages":["Internal server error"],"errors":{}}

Expected behaviour

201

Additional Context

-

codectl commented 2 years ago

PR #1483 closes this issue