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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.