Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add parent and child value to the cascade field

Petr AST
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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