Hello I am trying to Automate to update the fixVersion field of tickets in Jira using Jenkins "Jira Issue Results Updater.
Ive used the following Parameters:
Jira REST Base URL: https://<IP:port>/jira/rest/api/2
Jira Custom field to be edited: fixVersion
Jira Custom field value: <value>
Bu the I am getting the error below:
Unable to connect to REST service to set field
java.io.IOException: Server returned HTTP response code: 400 for URL
Also, I've tried a workaround by running a curl command which is:
Command:
curl -D- -u <username>:<password> -X PUT -d "{\"update\":{\"fixVersions\":[{\"set\":[{\"id\":\"<value>\"}]}]}}" -H "Content-Type: application/json" "https://<IP:Port>/jira/rest/api/2/issue/<issue-key>"
But I got the below:
HTTP/1.1 400 Bad Request
{"errorMessages":[],"errors":{"fixVersions":"Version id '<value>' is not valid"}}
Thanks in advance.