Hi,
I'm trying to create a issue linked to another based on a transition.
I would like the summary of the new ticket be as follows:"CustomFieldFromParent CustomText ParentSummary"
I have managed to get it working except for the customfield from the parent.
I have had no issue in trying to reference a text custom field, the script I used for this can be found here:
import com.atlassian.jira.ComponentManager;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.MutableIssue;
CustomFieldManager customFieldManager = ComponentManager.getInstance().getCustomFieldManager();
CustomField CustomFieldName = customFieldManager.getCustomFieldObjectByName( "CustomFieldName" );
issue.summary = issue.getCustomFieldValue( CustomFieldName) + ' txt ' +issue.getSummary();
However for some reason I can't seem to reference a Date Picker type customfield.
Is there something I would need to change in this script?
Also the custom field I'm trying to reference has spaces in the name, does that complicate things?
Thanks in advance,