Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,506
Community Members
 
Community Events
168
Community Groups

Reverse Select List Conversion In Behvaior (convertToShortText)

Edited

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

0 votes
Answer accepted

Thanks to @Thanos Batagiannis [Adaptavist]!

getFieldById("customfield_11337").convertToShortText()

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

208 views 1 6
Read article

Atlassian Community Events