I tried using Jira's bulk edit issue but it works fine when i try to add labels to a work item but throws error when i try to edit description or summary.
This is the payload i used for editing labels,
{
"editedFieldsInput": {
"labelsFields": [
{
"bulkEditMultiSelectFieldOption": "ADD",
"fieldId": "labels",
"labels": [
{
"name": "Test"
}
]
}
],
},
"selectedActions": [
"description"
],
"selectedIssueIdsOrKeys": [
"BBD-574"
],
}
It worked perfectly fine. This is the payload iam trying to use for description,
{
"editedFieldsInput": {
"richTextFields": [
{
"fieldId": "description",
"richText": {
"version": 1,
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 3
},
"content": [
{
"type": "text",
"text": "Story:"
}
]
},
]
}
}
]
},
"selectedActions": [
"description"
],
"selectedIssueIdsOrKeys": [
"BBD-574"
],
}
It is throwing error like check the payload something. WHat am i missing here?
Hi @Karan S Welcome to the Atlassian Community,
There's a comma too much within the square brackets belonging to the "content": [ ] bit.
Your element within (nice boundaries with curly braces, is followed with a comma that would suggest another element. But there is no second element, so the parsing goes wrong.
Kind regards,
Dick
data = {
"editedFieldsInput": {
"richTextFields": [
{
"fieldId": "description",
"richText": {
"version": 1,
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 3
},
"content": [
{
"type": "text",
"text": "Story:"
}
]
}
]
}
}
]
},
"selectedActions": [
"description"
],
"selectedIssueIdsOrKeys": [
"BBD-574"
],
}
I tried that also its still giving
2025-05-02,18:58:48 __main__:1751 - ERROR:{"errorMessages":["Invalid request payload. Refer to the REST API documentation and try again."]}
Not sure what am i missing,
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.