How to delete a Child Option in a Cascading Select type customfield?

xu zhijian May 29, 2012

Hi all,

I got the options in a Cascading Select type customfield like :

op1

childop1 childop2

op2

childop3

How can i delete childop1 in op1 ? I've already got an Options represent this Option List, and in Options interface, I can find removeOption(Option) function, but seems it only works for the first level Option like op1, op2. Can anybody help me ??

1 answer

1 accepted

0 votes
Answer accepted
Andrew Pechnikov
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.
July 25, 2012
OptionManager.deleteOptionAndChildren(childop1);
Indranil Mondal January 27, 2016

I have a multi select cascading list with 5 levels. Depending upon options from 4th level, options come in 5th level. Now I want to remove this whole 5th level. I have deleted all 5th level options which are coming from the 4th level. still the 5th level is showing in the screen with value "please select". How to remove this 5th level? It would be better if it can be removed without any scripts.

Thanks in advance...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events