jira icon indicating copy to clipboard operation
jira copied to clipboard

create project with 'permissionScheme' field is causing 500

Open codectl opened this issue 2 years ago • 1 comments

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?

  • [X] I have searched the existing issues

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?

  • [X] Linux
  • [ ] macOS
  • [ ] Windows

Reproduction steps

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

Stack trace

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

Expected behaviour

201

Additional Context

codectl avatar Aug 30 '22 10:08 codectl

PR #1483 closes this issue

codectl avatar Aug 30 '22 10:08 codectl