Hello,
We are facing an issue when creating issues via the Jira REST API in a Jira Data Center environment.
When trying to create an issue with the Assignee set as "Unassigned" or null (which is the value returned by the API when fetching an unassigned issue), Jira automatically assigns the issue to a random user who is not even part of the project.
This behavior is unexpected, as we would like the issue to remain unassigned.
Environment
Jira: Data Center
Creation method: REST API (/rest/api/2/issue)
Authentication: Personal Access Token
Issue type: Test / Standard Issue
Assignee field: Enabled and available on create screen
Steps to Reproduce
Create an issue via REST API with the following payload:
{
"fields": {
"project": { "key": "PROJECTKEY" },
"summary": "Test issue",
"issuetype": { "name": "Test" },
"assignee": null
}
}
or
{
"fields": {
"project": { "key": "PROJECTKEY" },
"summary": "Test issue",
"issuetype": { "name": "Test" },
"assignee": { "name": "Unassigned" }
}
}
Create the issue.
Check the assignee after creation.
Expected Result
The issue should be created as Unassigned, without any user assigned.
Actual Result
The issue is automatically assigned to a random user who is not part of the project.
Additional Information
When retrieving an unassigned issue via GET, the API returns assignee: null.
Passing this same value during creation does not preserve the unassigned state.
The user assigned automatically is not related to the project permissions.
This behavior affects automation and integrations.