Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Reverse Select List Conversion In Behvaior (convertToShortText)

Sir Charles Amante May 23, 2019

How do we reverse a Select List Conversion? For example:

if (getFieldById(getFieldChanged()).getValue().toString().contains("List")) {
    getFieldById("customfield_11337").convertToSingleSelect()
} else if (getFieldById(getFieldChanged()).getValue().toString().contains("Text")) {
    //Now how would we undo the select list conversion if someone is changing from "List" to "Text"?
getFieldById("customfield_11337").[Undo the Select List Conversion]
}

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Sir Charles Amante May 30, 2019

Thanks to @Thanos Batagiannis _Adaptavist_!

getFieldById("customfield_11337").convertToShortText()
TAGS
AUG Leaders

Atlassian Community Events