Hi,
I have a customfield "Kontrollrom" and I would like the input from this field to be copied to the Summary field, upon issue creation.
The cf is a insight object field, (name of the object is shown).
I have this script that I use in the Behaviour, but it only gives me the KEY for the object, not the NAME-attribute.
Any pointers on how to extract the name-attribute?
import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
import static com.atlassian.jira.issue.IssueFieldConstants.SUMMARY
@BaseScript FieldBehaviours fieldBehaviours
def system = getFieldByName("System").value
def CR = getFieldByName("Kontrollrom").value
def summary = getFieldById("summary")
summary.setFormValue("""Audit: """ + "${CR}")