Hello, I am working on an automation within Jira to try and update a custom field.
The custom field does not appear in the drop-down box so I have to try and figure out the JSON, but I can't wrap my head around it.
My Googling leads me to think the below JSON is correct:
{
"fields": {
"customfield_10458": "My new value"
}
}But it doesn't work and Jira reports this error when the rule is run:
Can not instantiate value of type [simple type, class com.atlassian.jira.issue.fields.rest.json.beans.CustomFieldOptionJsonBean] from JSON String; no single-String constructor/factory method (customfield_10458)
I have no idea what this means.
The custom field in question is a "Dependant dropdown", but I don't know if that is important or not.
I've been looking at this document plus a few other support tickets on here but haven't found a solution to my problem.