Error setting custom field for Organization

When updating an issue to set the organization custom field, I am getting an error saying the organization Id must be a number. But that is what I am sending. This is using the Jira Cloud API for the issue as I don’t see anything specific to this in the JSM API docs. What am I missing here?

@RandyKnight welcome to the Atlassian developer community.

Quotes around a number make it a string.

{
    "fields": {
        "customfield_10002": [{"id": 10}]
    }
}
1 Like