Clones an issue and links - Creating an Epic

Angela Tran November 15, 2016

Hi,

I'm trying to create an Epic with the "Clones an issue and links" post function. It's not working; I think because Epic Name is a required field. Is it possible to use the Summary of the source issue for the Epic Name of the target issue?

Thanks

1 answer

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2016

You should be able to specify the epic name by using this code in the "Additional code" section:

import com.atlassian.jira.component.ComponentAccessor

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def epicNameCf = customFieldManager.getCustomFieldObjectByName("Epic Name")

issue.setCustomFieldValue(epicNameCf, sourceIssue.summary)

Suggest an answer

Log in or Sign up to answer