Move Issue Post-Function

What is it?

The problem you need to solve: Be able to move an Issue during a transition in order to implement by example an Auto-Triage workflow.

How Minyaa solves this problem: The Workflow Post-Function is reproducing the JIRA Move action.

How it works

The Post-Function is able to move an issue to any Project changing the Issue Type and Status.

Configuring the Feature

Before configuring the Move Issue Workflow Post-Function, you have to take in account some constraint :

  • Move Issue Workflow Post-Function does perform the move without user interaction ...
  • It means that you are not able to be asked for any selection during the move,
  • The Source Field Configuration needs to match with the Target Field Configuration,
  • The configured Issue Type and Status have to be conherent for the target Project,
  • No control can be done during the Post-Function configuration, since it is not known with which project you want associate the Workflow,
  • ... to use with care !!
Now, you can go forward in the configuration by following these steps :
  1. Add the Move Issue Workflow Post-Function to any wanted transition, where you want intiate an issue move.

    For more information on adding a Post Function in Workflow, please see JIRA: Adding a Post Function Adding a Move Issue Post-Function

  2. Its configuration allows you to specify ...

    • The Project where you want move the issue,
    • The Issue Type to use for the target Issue,
    • The Status in which the Issue has to be set,


    For all these parameters, you can specify that it has to be moved in the same Project, Issue Type or Status. Move Issue Post-Function Edit

  3. When added, the Post-Function should be among the latest defined Post-Functions (its weight is set to 1000).

  4. You will end up with a transition looking like:

    Move Issue Post-Function View

    And the XML Declaration as follow :

    <post-function >
    	<function type="class">
    	    <arg name="targetProjectId">10130</arg>
    	    <arg name="targetStatusId">3</arg>
    	    <arg name="class.name">com.minyaa.workflow.function.MoveIssueFunction</arg>
    	    <arg name="targetIssueTypeId">2</arg>
    	</function>
    </post-function>