I got error as “‘accountId’ must be the only user identifying query parameter in GDPR strict mode.”
Welcome to the Atlassian developer community @sj1,
Maybe you could have a look at our community guidelines on how to ask a good question:
Specifically, can you provide more context about the HTTP request you are making? And additional response details like the HTTP status code or other interesting header?
Hi, I am new to jira . I am trying to create project in jira using REST API.
I authenticated through basic auth.
This is my request body
{
"leadAccountId":"62de2bd80b4bf7ad924a926a",
"url": "http://atlassian.com",
"avatarId": 10200,
"issueSecurityScheme": 10001,
"projectTemplateKey": "com.atlassian.jira-core-project-templates:jira-core-simplified-process-control",
"name": "Example",
"permissionScheme": 10011,
"assigneeType":"PROJECT_LEAD",
"projectTypeKey": "business",
"key": "EX",
"categoryId": 10120
}
I got response as
{
"errorMessages": [
"Internal server error"
],
"errors": {}
}
Any help would be appreciated
@sj1,
You might want to start with a minimum request:
{
"name": $UNIQUE_NAME,
"key": $UNIQUE_KEY,
"projectTypeKey": "business",
"leadAccountId": $ACCOUNT_ID
}
From what I can tell, even bad values for those will return a meaningful error message.
Adding a bit more of your more elaborate request back, all of this works for me:
{
"name": $UNIQUE_NAME,
"key": $UNIQUE_KEY,
"projectTypeKey": "business",
"leadAccountId": $ACCOUNT_ID,
"url": "http://atlassian.com",
"assigneeType": "PROJECT_LEAD",
"projectTemplateKey": "com.atlassian.jira-core-project-templates:jira-core-simplified-process-control",
"avatarId": 10200
}
I can get the same errors you saw (Internal server error
) when I provide invalid IDs for issueSecurityScheme
or permissionScheme
. I get a meaningful error message when I provide a wrong categoryId
.
Thank you for your response. I created project .