I need help.
Could someone help me write a script that changes the summary of another issue.
I have in a customfield the KEY of this issue that I want to change.
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.component.ComponentAccessor;
def id_vaga = customFieldManager.getCustomFieldObject("customfield_16057")
def key_value = issue.getCustomFieldValue(id_vaga).toString()
def issueManager = ComponentAccessor.getIssueManager()
def issue1 = issueManager.getIssueObject("${key_value}")
issue1.setSummary("XYZ")