Can someone review and let me know why this wont work?
import com.atlassian.jira.bc.project.component.ProjectComponent
def desc = getFieldById("description")
def component = getFieldById(getFieldChanged())
def defaultValue = """
*WHAT:* chicken, chicken chicken
*WHY*
""".replaceAll(/ /, '')
for(c in comps){
if(c.getName().contains(“Stuff”)){defaultValue = true}
}
if (! underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}