Jira create issue API does not honor assignee or reporter fields

Hello, I’ve followed the API documentation for creating an an issue in Jira with an assignee ID, however it does not set the assignee when I view the ticket via either the API or the UI.

My payload looks like this:

{
  "fields": {
    "summary": "another one",
    "description": {
      "type": "doc",
      "version": 1,
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": ""
            }
          ]
        }
      ]
    },
    "project": {
      "id": "10002"
    },
    "issuetype": {
      "id": "10004"
    },
    "labels": [
      "firehydrant",
      "UNSET"
    ]
  },
  "assignee": {
    "id": "5bd7c9cabfe6ba4263f72879"
  }
}

However the assignee does not get set. Same thing if I set the reporter field as well.

I receive no error from the API, too. It creates the issue just fine, but with no assignee.

I’m using an OAuth2 bearer token to perform this request.

Hi @RobertRoss,

The assignee field needs to be directly under the fields field. I think it is a peer to the fields field in your code.

Regards,
Dugald