This article explains how to link the Epic of the current ticket to the new ticket in Create / Clone issue(s) (JMWE app) post-function.
Instructions
Navigate to the desired workflow transition and add the “Create / Clone issue(s) (JMWE app)” post-function.
Fill in the required details.
Select the checkbox “Run a Groovy script after the issue is created” under “Post-creation script” and add the below “Post-creation script:”
Code Block language groovy if(issue.get("customfield_10000")) newIssue.linkIssue("relates to",issue.get("customfield_10000"))
...
With this, when the transition is executed, a new ticket issue is created with the configured details and is linked to the Epic of the current ticketissue.
...
References
...