The problem you need to solve: See Sub-Task Component be updated with Parent Component .
How Minyaa solves this problem: Minyaa allows you to define a Workflow Function usable in any Transition and able to update Component by Parent Component.
By defining this Workflow Function in a Transition of your workflow, you are able to force Sub-Task's Component to be updated with Component of Parent Issue.
You can also define a such Workflow Function in the Global Edit Transition (See Issue Validation), and then be sure that the integrity of this rule is respected.
To configure the Inherit Component Workflow Function, please follow these steps :
<post-function > <function type="class"> <arg name="class.name">com.atlassian.jira.workflow.function.InheritComponentFunction</arg> </function> </post-function>