Forums

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

How to use JIRA REST API to bulk update the fixVersion field

Tilak Sharma April 8, 2025

I need assistance with the following error encountered while attempting to edit the fixVersions field using the v3 REST API Bulk Edit endpoint. I’ve already searched the community forum but couldn’t find a working solution to resolve this issue. If anyone has successfully tackled this problem, could you please share a sample JSON payload that worked for you or help me troubleshoot the one included below?

Request JSON Payload: 

 

{
  "editedFieldsInput": {
    "multipleVersionPickerFields": [
      {
        "bulkEditMultiSelectFieldOption": "ADD",
        "fieldId": "fixVersions",
        "versions": [
          {
            "versionId": "RC-0010"
          }
        ]
      }
    ]
  },
  "selectedIssueIdsOrKeys": [
    "XYZ-40079",
    "XYZ-40040"
  ],
  "selectedActions": [
    "fixVersions"
  ],
  "sendBulkNotification": false
}

 

Error response:
-----------------
{
    "errors": [
        {
            "message": "At least one valid value must be provided for the multi select field: \"Fix versions\" and the option \"Add to existing\""
        }
    ]
}

 

1 answer

1 accepted

0 votes
Answer accepted
David Nickell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 8, 2025

I am pretty sure you are using your version name and not version id.  

You can check for the right version ids by running this simple REST call in your browser:

https://your.atlasssian.net/rest/api/3/project/PKey/versions

Here is what the Output looks like when I run this: https://jira.atlassian.com/rest/api/2/project/API/versions  (Note - I have to use api/2 on that site)

[{"self":"https://jira.atlassian.com/rest/api/2/version/90425","id":"90425","name":"1.0","archived":false,"released":true,"projectId":20010},
{"self":"https://jira.atlassian.com/rest/api/2/version/92938","id":"92938","name":"None","archived":false,"released":false,"projectId":20010}]

 

Tilak Sharma April 9, 2025

Hi David,

Thank you for your prompt response! You were right, I was indeed passing the version name as the value while attempting to create a new version using the ADD action.

Your suggestion pointed me in the right direction. I switched to using the Create Version endpoint to register the new release version first and then used the resulting versionId in the subsequent Bulk Edit Issues request and that did the trick!

Really appreciate your quick help on this.

Best regards,

Tilak

Like David Nickell likes this
David Nickell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2025

you are welcome.... it says "you are new here"... if you don't mind, take a moment to accept the answer.  it does help my visbility but might also save time for someone else

Like Tilak Sharma likes this
Tilak Sharma April 9, 2025

Done!

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events