Forums

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

Cascading Select List: Create Child Options Via the API

Jeffrey Bistrong
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 Leaders.
August 6, 2024

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

 

Monosnap update cascading list parents - My Workspace 2024-08-06 14-12-02.png

I was able to create the list of the first options, but not sure how to do the 2nd part

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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 Leaders.
August 6, 2024

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

Jeffrey Bistrong
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 Leaders.
August 6, 2024

thats right Bill, you are correct by adding the optionId it worked, thanks

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events