I'm using Python 3.7.7 and trying to create a Jira project.
I tried this code:
def create_project(self, params):
project_key = params['project_key']
project_name = params['project_name']
assignee = params['assignee']
if not self.jira.create_project(project_key, name=project_name, assignee=assignee):
return None
proj = self.jira.project(project_key)
return proj
The connection to my Jira server is established, but I get the next error:
jira.exceptions.JIRAError: JiraError HTTP 500 url: https://lebel23.atlassian.net/rest/project-templates/latest/templates
text: Internal server error
response headers = {'Server': 'AtlassianProxy/1.15.8.1', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Type': 'application/json;charset=UTF-8', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Sat, 06 Jun 2020 18:06:46 GMT', 'ATL-TraceId': 'eaac8f1f424964e6', 'X-AREQUESTID': '5219eeb7-0067-420a-bcaf-f66ca0419d43', 'X-AACCOUNTID': '5eca0fc147d31e0c2af21fae', 'X-XSS-Protection': '1; mode=block', 'Transfer-Encoding': 'chunked', 'Timing-Allow-Origin': '*', 'X-Content-Type-Options': 'nosniff', 'Micros-Issuer': 'micros/edge-authenticator', 'Connection': 'close', 'Expect-CT': 'report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400'} response text = {"errorMessages":["Internal server error"],"errors":{}}
I tried to create problems, worklogs, e.t.c. . It was successful.
What might be the problem?