Hi,
I am trying to update issue description field and constantly getting 400 Bad request error message.
My function body looks like this
const response = await api.asApp().requestJira(`/rest/api/3/issue/${id}`, {
method: "PUT",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
}
and payload is
{
"update": {},
"fields": {
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "test Description…updating…"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Linked Stories"
}
]
},
{
"type": "orderedList",
"content": [
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "10024"
}
]
}
]
}
]
}
]
}
}
}
I have tried tried description as part of UPDATE block as well but still get the same error
{"headers":{},"ok":false,"status":400,"statusText":"Bad Request"}
any ideas what I am missing here or doing wrong???
Thanks