Hi Everyone,
First post here so apologies for any errors.
I’m trying to automate assigning tickets using Python. The assignment is under a “different screen” where you have to click a button on the initial ticket and assign the user and the reason (required dropdown box).
I can connect to the ticket and get the custom fields. But when I try to update either of the fields I get the following error:
response text = {“errorMessages”:[],“errors”:{“customfield_10472”:“Field ‘customfield_10472’ cannot be set. It is not on the appropriate screen, or unknown.”}}
Here are some of the codes I already tried:
issue.update(fields={‘customfield_10472’:{‘name’:‘userid’}})
issue.update(fields={‘customfield_10472’:[{‘name’:‘userid’}]})
issue.update(fields={‘customfield_10472’:{‘Value’:‘userid’}})
issue.update(fields={‘customfield_10472’:{‘value’:‘userid’}})
issue.update(fields={‘customfield_10472’:{‘assignee’:‘userid’}})
Here is my REST API result for the fields I’m trying to change:
“fields”: {
“customfield_10401”: {
“self”: “https://jirasd.prd.company.net/rest/api/2/customFieldOption/11300”,
“value”: “Initial Assignment”,
“id”: “11300”
},
customfield_10472": null
}
Thank you everyone in advance.