Hi,
I am trying to generate a summary automatically with the value of a field.
The problem is that if I change the value of that field when creating the task, it does not update the summary field with the new value.
I have created a behavior that works only when I update the creation screen or when I update the issue already created.
Behavior:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.event.type.EventDispatchOption
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser().getDisplayName()
def summary = getFieldById("summary")
def inf = getFieldById("customfield_15900").value
summary.setFormValue("${inf}" + ":" + " " + "${currentUser}")
How can I make the summary field to be updated with the new value that I put in the field from which I take that value?