Hello,
You should add a post-function like this:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
def parentIssue =issue.getParentObject
()
After that you can begin to copy values of the fields from the parentIssue variable to the issue variable. The code would depend on your requirements. After that you have to update the issue.
It could be done with less code in Power Scripts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.