I’m trying to create an issue in Jira via the REST API. I’m getting an error back that seems to have to do with Tempo. I’m assuming it’s because Account is a required field, but I don’t get why it can’t handle what I’m sending through as the account value.
This is what I’m sending through as the BODY of the curl request:
{
"fields": {
"summary": "WhiteHat: test",
"issuetype": {
"id": "10041"
},
"customfield_10032": {"value":14},
"project": {
"id": "10037"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "description"
}
]
}
]
},
"reporter": {
"name": "Jira Monkey"
}
}
}
customfield_10032 is the Tempo Account field, found by mousing over the Edit link in the field configuration. 14 is the specific account ID I want to send, found by mousing over the account name in the Tempo → Accounts screen.
I get this error back:
{“errorMessages”:,“errors”:{“io.tempo.jira__account”:“Can not deserialize instance of java.lang.Long out of START_OBJECT token\n at [Source: N/A; line: -1, column: -1]”}}
What am I doing wrong?