Hi, I am trying change fixVersions via REST API with next logic:
# Construct the URL for the Jira issue
url = f'{jira_url}/rest/api/3/issue/{issue_key}'
# Construct the authentication header auth_
header = f'Basic {base64.b64encode(f"{username}:{api_token}".encode()).decode()}'
# Construct the payload to update the fixVersion
payload = {
"update": {
"fixVersions": [
{"add": {"id": fix_version}}
]
}
}
# Make the PUT request to update the issue
response = requests.put(url, json=payload, headers={'Authorization': auth_header})
but have this error: “Failed to update fixVersion for issue 'TEST-1234': {"errorMessages":[],"errors":{"fixVersions":"Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown."}}”
Could you help to understand what is wrong?
Thanks!