The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Clones an issue and links - Creating an Epic

Angela Tran
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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)