The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

BULK EDIT ISSUE Using JIRA REST API

Karan S
May 2, 2025

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?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Dick
Community Champion
May 2, 2025

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

Karan S
May 2, 2025
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,



Jim Knepley - ReleaseTEAM
Atlassian Partner
May 2, 2025

@Karan S, I agree with @Dick, trailing commas are fine in JavaScript, but aren't valid for JSON documents. In your updated reply, there's a trailing comma at the very bottom.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas#trailing_commas_in_json

Karan S
May 4, 2025

I tried its still same issue. I think summary and description fields can be edited during bulk epic I think

Karan S
May 4, 2025

image (5).png

Like Dick likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events