Reading through this documentation I can't figure out how to create the child options via the API
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-post
I was able to create the list of the first options, but not sure how to do the 2nd part
Hi @Jeffrey Bistrong
I have not tried that in a while, and I recall you add the "optionId" attribute to refer to the parent. For the example you show, if "8.0" with an id "13094" is the parent, adding a child could be:
{ "disabled": false, "optionId": "13094", "value": "stuff after 8.0"}
Later when you view the complete list, you will see the parents have an id only and the children have an id and an optionId for their parent.
Kind regards,Bill
thats right Bill, you are correct by adding the optionId it worked, thanks
It looks like you're new here. Sign in or register to get started.