Resetting a number custom value to null

A client needs to reset their number custom fields to empty/null. Is there any way of doing this?
By using the rest API call rest/api/2/issue/issue_key with a body like:

{
    "update": {},
    "fields": {
        "customfield_10033": {
            "value": null
        }
    }
}

for a number custom field I get the error “Operation value must be a number”.

1 Like

Hi @BlagaCosmindisp,

you are providing an object with a “value” property instead of a number, so that’s why you see this message.
You should go with:

{
    "fields": {
        "customfield_1003": null
    }
}

A “Number Field” example is included in the documentation of this endpoint.

2 Likes