I try to update the issue description field using this EXAMPLE that is in official Atlassian documentation but it gives me error that "update" cannot be used for description.
I try different options but it does now update my description but overwrites it.
Can anyone tell me what is not right here?
if this is official example why it does not work with the "update" statement ?
Hi Tomasz and welcome to the Atlassian community!
I found an old bug report for Jira server/ data center and I think it is applicable for Cloud too. See this comment: https://jira.atlassian.com/browse/JIRAAUTOSERVER-190?focusedId=2619480&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2619480
Can you try with this code?
"update": { "description": [{ "set": "a new description" }], "labels": [{ "add": "test-label" }] }, "fields": { "summary": "woohoo! a new summary" } }
hello @Tomasz Sabramowicz
If you mean this LINK where you got your example, then that link does need updates for certain fields.
Please look at the official API docs: LINK
Especially this blurb: "Note that the description
, environment
, and any textarea
type custom fields (multi-line text fields) take Atlassian Document Format content."
what this mean is, if you need update description, the JSON to use:
{
"fields": {
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "add your description here"
}
]
}
]
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.