Inherit Component

What is it?

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.

How it works

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.

Configuring the Feature

To configure the Inherit Component Workflow Function, please follow these steps :

  1. Since this Workflow Function does not need to be associated with a screen containing the concerned CustomFields, the function can be added in any Workflow Transition.

    It might be:
    • A Common Transition,
    • Or a Global Transition,
    • Or the Edit Global Transition.
  2. Add the Inherit Component Post-Function to any wanted transition.

    For more information on adding a Post Function in Workflow, please see JIRA: Adding a Post Function Adding a Inherit Component Post-Function
  3. You will end up with a transition looking like:

    Inherit CustomFields Post-Function

    And the XML Declaration as follow :

    <post-function >
    	<function type="class"> 
    		<arg name="class.name">com.atlassian.jira.workflow.function.InheritComponentFunction</arg>
    	</function> 
    </post-function>