How to Set Assignee to Unassigned via REST API in JIRA
Purpose
The purpose of this article is to show how to set assignee field to "Unassigned" via REST API in JIRA. The complete REST API documentation can be found at REST API and versions.
Resolution
- Don't:
Example:
{
"name": "Unassigned"
}
Note: Performing such way will throw "Unassigned is not an assignable user" error. This is because "Unassigned" is not an user in JIRA.
- Do:
Example:
{
"name": "-1"
}
Note: If the name is "-1" default assignee is used. If your default assignee is not "Unassigned", then please do as following:
{
"name": null
}
Note: A null name will remove the assignee.