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
)
@Genival Neves Brasil Junior ,
So far, no payload errors have been pointed out. The error indicates that the ID field 12302 is not being displayed in the issue.
Have you tried putting this field to be displayed in the issue? Make sure it's on the "Edit" and "View" screens.
Then try again and see if the error still persists.
Hello Fernando,
The fields are already configured in the screen schema and appear normally in the Issue.
I performed two tests on both fields successfully:
- Directing in Jira changing the value of the field that I'm having problems with;
- In Python printing the value of the fields that 12302 and 12301;
Any other suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.