Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown.

Maksym Zhylin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 30, 2024

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!

0 answers

Suggest an answer

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

Atlassian Community Events