I'm trying to automate an automatic copy when the hierarchy of a ticket is changed, specifically when the linked issue is updated to "Child Of" to set the "Parent" Epic value to the appropriate ID.
Hopefully, my screenshot illustrates it better:
When I link ST-28 (Child story) to ST-27 (Parent Epic) through JIRA's linking option, I want the Epic/ Parent auto-updated.

Any ideas?