Hello all,
I am trying to run a REST API PATCH to update a Jira Align customfield with a new dropdown value, and I am having problems finding the correct format.
The GET returns the following
"customFields": [
{
"customfield_90704": [
{
"id": 198,
"value": " High"
}
]
}
]
However, finding the correct JSON Patch is hard. I've tried lots including the following but nothing seems to work. I think the path is close but then it says the values are not valid. Is this the correct format for nested values deriving their values from a dropdown?
[{
"op": "replace",
"path": "/customfields/custom-field_90704/",
"value": {"id": "197", "value": "Very High"}
}]
[{
"op": "replace",
"path": "/customfields/0/customfield_90704/",
"value": {"id": 197,"value":"Very High"}
}]
[{
"op": "replace",
"path": "/customfields/:customfield_90704/",
"value": {"id": 197,"value": "Very High"}
}]
Any help would be appreciated.