Dear Friends,
I need to update some custom fields in JIRA using the value of another custom field in the same issue.
I developed a routine in Python, structured to update the field with the requested values.
In the tests carried out I am getting the error message below.
"fields.customfield_12302": "Field 'fields.customfield_12302' cannot be set. It is not on the appropriate screen, or unknown."
Does anyone know how to resolve? Below is the code I'm using in the tests.
for i in dfIssues.index:
url = "https://clarodigital.atlassian.net/rest/api/3/issue/" + dfIssues['id'][i]
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
payload = json.dumps( {
"fields": {
"fields.customfield_12302": dfIssues['fields.customfield_12301'][i]
}
})
response = requests.request(
"PUT",
url,
data=payload,
headers=headers,
auth=auth
)