Hello,
I managed to retain the updated description when I changed the issue types.
Example 1: The default description displays if I select the project and issue type in the create form. After updating the description, if we change the issue type again, the updated value stays the same in the form.
However, I've encountered an issue with the field level, where the updated description is not retained.
Example 2: The default description displays If I select the field values 'Network Expansion' OR 'DNI' OR 'Mid-Market - NetSuite' OR 'Mid-Market - Partner,' but when I change the issue type, it overwrites the description and displays the template.
How can I maintain the same description in Example 2?
Here is my code on field behavior:

import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours behaviours
def desc = getFieldById("description")
def rdField = getFieldById(fieldChanged)
def rdValue = rdField.value?.toString()
def defaultValue = """
This is the default text for any issue except the 'Requester Dept.' NOT in (DNI, "Mid-Market - NetSuite", "Mid-Market - Partner") values
"""
def requesterdeptValue = """
This is the default text for values of the field 'Requester Dept.' in (DNI, "Mid-Market - NetSuite", "Mid-Market - Partner")
If the user selects any one of these values. it should display this text.
"""
if(rdValue == ("Network Expansion") || rdValue == ("DNI") || rdValue == ("Mid-Market - NetSuite") || rdValue == ("Mid-Market - Partner"))
{
desc.setFormValue(requesterdeptValue)
}
else if(!desc.formValue)
{
desc.setFormValue(defaultValue)
}