Add parent and child value to the cascade field

Petr AST
Contributor
December 25, 2023

Dear Community!

Is it possible to add both a parent value and a child for it through the API?

POST https://domain_name.atlassian.net/rest/api/3/field/customfield_10071/context/10175/option

The child value is added only with the optionID, which corresponds to the parentID.
But how to get this parent ID at the time of creation?
Maybe there are alternatives to create both parent and child for it at once?

{
"options": [
{
"disabled": false,
"value": "New_parent_value"
},
{
"disabled": false,
"optionId": 10126,
"value": "New_child_value"
}
]
}

 Thanks in advance!

0 answers

Suggest an answer

Log in or Sign up to answer