The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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